mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
TableGen: Add 'static' to a large array to avoid a huge stack allocation
Speculative fix for a -Wframe-larger-than warning from gcc. Clang will implicitly promote such constant arrays to globals, so in theory it won't hit this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -424,7 +424,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Emit the string itself.
|
// Emit the string itself.
|
||||||
O << " const char AsmStrs[] = {\n";
|
O << " static const char AsmStrs[] = {\n";
|
||||||
StringTable.emit(O, printChar);
|
StringTable.emit(O, printChar);
|
||||||
O << " };\n\n";
|
O << " };\n\n";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user