TableGen: Fixed the string table definitions visibility. (#148946)

This fixes the buildbots issues reported in #148839.
This commit is contained in:
Slava Zakharin 2025-07-15 14:32:48 -07:00 committed by GitHub
parent fd543b3c46
commit e685e4a771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -83,10 +83,11 @@ void StringToOffsetTable::EmitStringTableDef(raw_ostream &OS,
#pragma GCC diagnostic pop
#endif
{1}constexpr llvm::StringTable
{1} llvm::StringTable
{2}{0} = {0}Storage;
)",
Name, ClassPrefix.empty() ? "static " : "", ClassPrefix);
Name, ClassPrefix.empty() ? "static constexpr" : "const",
ClassPrefix);
}
void StringToOffsetTable::EmitString(raw_ostream &O) const {

View File

@ -135,7 +135,7 @@ def BlahLibrary : SystemRuntimeLibrary<isBlahArch, (add calloc, LibraryWithCondi
// CHECK-NEXT: #pragma GCC diagnostic pop
// CHECK-NEXT: #endif
// CHECK-EMPTY:
// CHECK-NEXT: constexpr llvm::StringTable
// CHECK-NEXT: const llvm::StringTable
// CHECK-NEXT: RTLIB::RuntimeLibcallsInfo::RuntimeLibcallImplNameTable = RuntimeLibcallImplNameTableStorage;
// CHECK-EMPTY:
// CHECK-NEXT: const uint16_t RTLIB::RuntimeLibcallsInfo::RuntimeLibcallNameOffsetTable[] = {