diff --git a/llvm/include/llvm/TargetParser/Triple.h b/llvm/include/llvm/TargetParser/Triple.h index 09c0d223d9b4d..0ec1cbd956ad0 100644 --- a/llvm/include/llvm/TargetParser/Triple.h +++ b/llvm/include/llvm/TargetParser/Triple.h @@ -10,6 +10,7 @@ #define LLVM_TARGETPARSER_TRIPLE_H #include "llvm/ADT/Twine.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/VersionTuple.h" // Some system headers or GCC predefined macros conflict with identifiers in @@ -41,7 +42,7 @@ namespace llvm { /// /// See autoconf/config.guess for a glimpse into what configuration names /// look like in practice. -class Triple { +class LLVM_ABI Triple { public: enum ArchType { UnknownArch,