Skip to content

Commit e685e4a

Browse files
authored
TableGen: Fixed the string table definitions visibility. (#148946)
This fixes the buildbots issues reported in #148839.
1 parent fd543b3 commit e685e4a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

llvm/lib/TableGen/StringToOffsetTable.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ void StringToOffsetTable::EmitStringTableDef(raw_ostream &OS,
8383
#pragma GCC diagnostic pop
8484
#endif
8585
86-
{1}constexpr llvm::StringTable
86+
{1} llvm::StringTable
8787
{2}{0} = {0}Storage;
8888
)",
89-
Name, ClassPrefix.empty() ? "static " : "", ClassPrefix);
89+
Name, ClassPrefix.empty() ? "static constexpr" : "const",
90+
ClassPrefix);
9091
}
9192

9293
void StringToOffsetTable::EmitString(raw_ostream &O) const {

llvm/test/TableGen/RuntimeLibcallEmitter.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def BlahLibrary : SystemRuntimeLibrary<isBlahArch, (add calloc, LibraryWithCondi
135135
// CHECK-NEXT: #pragma GCC diagnostic pop
136136
// CHECK-NEXT: #endif
137137
// CHECK-EMPTY:
138-
// CHECK-NEXT: constexpr llvm::StringTable
138+
// CHECK-NEXT: const llvm::StringTable
139139
// CHECK-NEXT: RTLIB::RuntimeLibcallsInfo::RuntimeLibcallImplNameTable = RuntimeLibcallImplNameTableStorage;
140140
// CHECK-EMPTY:
141141
// CHECK-NEXT: const uint16_t RTLIB::RuntimeLibcallsInfo::RuntimeLibcallNameOffsetTable[] = {

0 commit comments

Comments
 (0)