diff --git a/llvm/include/llvm/Support/Format.h b/llvm/include/llvm/Support/Format.h index 89b6ae35ba5de..2553002b37899 100644 --- a/llvm/include/llvm/Support/Format.h +++ b/llvm/include/llvm/Support/Format.h @@ -25,6 +25,7 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringRef.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/DataTypes.h" #include #include @@ -36,7 +37,7 @@ namespace llvm { /// This is a helper class used for handling formatted output. It is the /// abstract base class of a templated derived class. -class format_object_base { +class LLVM_ABI format_object_base { protected: const char *Fmt; ~format_object_base() = default; // Disallow polymorphic deletion.