File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,6 @@ struct RawOption {
7575 bool isHidden () const { return flags & llvm::opt::HelpHidden; }
7676};
7777
78- #if defined(LLVM_VERSION_MAJOR) && LLVM_VERSION_MAJOR == 21
79-
8078#define OPTTABLE_PREFIXES_TABLE_CODE
8179#include " swift/Option/Options.inc"
8280#undef OPTTABLE_PREFIXES_TABLE_CODE
@@ -102,23 +100,6 @@ static const char *getPrefixedName(unsigned prefixedNameOffset) {
102100 return OptionStrTable[prefixedNameOffset].data ();
103101}
104102
105- #else // #if defined(LLVM_VERSION_MAJOR) && LLVM_VERSION_MAJOR == 21
106-
107- #define PREFIX (NAME, VALUE ) static constexpr llvm::StringLiteral NAME[] = VALUE;
108- #include " swift/Option/Options.inc"
109- #undef PREFIX
110-
111- static std::vector<llvm::StringRef>
112- getPrefixes (llvm::ArrayRef<llvm::StringLiteral> prefixes) {
113- return std::vector<llvm::StringRef>(prefixes.begin (), prefixes.end ());
114- }
115-
116- static const char *getPrefixedName (const char *prefixedName) {
117- return prefixedName;
118- }
119-
120- #endif // #if defined(LLVM_VERSION_MAJOR) && LLVM_VERSION_MAJOR == 21
121-
122103namespace {
123104using namespace swift ::options;
124105using namespace llvm ::opt;
You can’t perform that action at this time.
0 commit comments