Skip to content

Commit 3088ae6

Browse files
Merge pull request #1999 from swiftlang/jepa-main2
makeOptions: Remove workaround to support LLVM 17
2 parents 91ce741 + c2b8484 commit 3088ae6

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Sources/makeOptions/makeOptions.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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-
122103
namespace {
123104
using namespace swift::options;
124105
using namespace llvm::opt;

0 commit comments

Comments
 (0)