summaryrefslogtreecommitdiff
path: root/lld/MachO
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 /lld/MachO
parent719d98dfa841c522d8d452f0685e503538415a53 (diff)
downloadllvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.tar.gz
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 'lld/MachO')
-rw-r--r--lld/MachO/DriverUtils.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/MachO/DriverUtils.cpp b/lld/MachO/DriverUtils.cpp
index efc8e3232295..be03d88f5a72 100644
--- a/lld/MachO/DriverUtils.cpp
+++ b/lld/MachO/DriverUtils.cpp
@@ -35,13 +35,12 @@ using namespace lld;
using namespace lld::macho;
// Create prefix string literals used in Options.td
-#define PREFIX(NAME, VALUE) \
- static constexpr std::initializer_list<StringLiteral> NAME = VALUE;
+#define PREFIX(NAME, VALUE) const char *NAME[] = VALUE;
#include "Options.inc"
#undef PREFIX
// Create table mapping all options defined in Options.td
-static constexpr std::initializer_list<OptTable::Info> optInfo = {
+static constexpr OptTable::Info optInfo[] = {
#define OPTION(X1, X2, ID, KIND, GROUP, ALIAS, X7, X8, X9, X10, X11, X12) \
{X1, X2, X10, X11, OPT_##ID, Option::KIND##Class, \
X9, X8, OPT_##GROUP, OPT_##ALIAS, X7, X12},