From e8a62b8fd1f61ac02e02148846f05b142d2ab93c Mon Sep 17 00:00:00 2001 From: Andrew Rogers Date: Wed, 19 Feb 2025 10:49:17 -0800 Subject: [PATCH] DLLExport OptTable and GenericOptTable --- llvm/include/llvm/Option/OptTable.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Option/OptTable.h b/llvm/include/llvm/Option/OptTable.h index 61a58aa304ecb..7a14f6546ac98 100644 --- a/llvm/include/llvm/Option/OptTable.h +++ b/llvm/include/llvm/Option/OptTable.h @@ -14,6 +14,7 @@ #include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringTable.h" #include "llvm/Option/OptSpecifier.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/StringSaver.h" #include #include @@ -50,7 +51,7 @@ class Visibility { /// be needed at runtime; the OptTable class maintains enough information to /// parse command lines without instantiating Options, while letting other /// parts of the driver still use Option instances where convenient. -class OptTable { +class LLVM_ABI OptTable { public: /// Entry for a single option instance in the option data table. struct Info { @@ -423,7 +424,7 @@ class OptTable { }; /// Specialization of OptTable -class GenericOptTable : public OptTable { +class LLVM_ABI GenericOptTable : public OptTable { protected: GenericOptTable(const StringTable &StrTable, ArrayRef PrefixesTable,