aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-ifs/llvm-ifs.cpp
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@mozilla.com>2022-12-23 11:36:56 +0100
committerserge-sans-paille <sguelton@mozilla.com>2022-12-23 11:36:56 +0100
commitb7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f (patch)
tree9059fcc00424d7b8bbdf317a777620d0fee08e8c /llvm/tools/llvm-ifs/llvm-ifs.cpp
parent719d98dfa841c522d8d452f0685e503538415a53 (diff)
downloadllvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.zip
llvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.tar.gz
llvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.tar.bz2
Revert "[clang] Use a StringRef instead of a raw char pointer to store builtin and call information"
Failing builds: https://lab.llvm.org/buildbot#builders/9/builds/19030 This is GCC specific and has been reported upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108158 This reverts commit 719d98dfa841c522d8d452f0685e503538415a53.
Diffstat (limited to 'llvm/tools/llvm-ifs/llvm-ifs.cpp')
-rw-r--r--llvm/tools/llvm-ifs/llvm-ifs.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-ifs/llvm-ifs.cpp b/llvm/tools/llvm-ifs/llvm-ifs.cpp
index f64acf96..bef2800 100644
--- a/llvm/tools/llvm-ifs/llvm-ifs.cpp
+++ b/llvm/tools/llvm-ifs/llvm-ifs.cpp
@@ -60,12 +60,11 @@ enum ID {
#undef OPTION
};
-#define PREFIX(NAME, VALUE) \
- static constexpr std::initializer_list<StringLiteral> NAME = VALUE;
+#define PREFIX(NAME, VALUE) const char *const NAME[] = VALUE;
#include "Opts.inc"
#undef PREFIX
-static constexpr std::initializer_list<opt::OptTable::Info> InfoTable = {
+static constexpr opt::OptTable::Info InfoTable[] = {
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
HELPTEXT, METAVAR, VALUES) \
{ \