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 {
75
75
bool isHidden () const { return flags & llvm::opt::HelpHidden; }
76
76
};
77
77
78
- #if defined(LLVM_VERSION_MAJOR) && LLVM_VERSION_MAJOR == 21
79
-
80
78
#define OPTTABLE_PREFIXES_TABLE_CODE
81
79
#include " swift/Option/Options.inc"
82
80
#undef OPTTABLE_PREFIXES_TABLE_CODE
@@ -102,23 +100,6 @@ static const char *getPrefixedName(unsigned prefixedNameOffset) {
102
100
return OptionStrTable[prefixedNameOffset].data ();
103
101
}
104
102
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
-
122
103
namespace {
123
104
using namespace swift ::options;
124
105
using namespace llvm ::opt;
You can’t perform that action at this time.
0 commit comments