projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08f689e
)
TableGen: Add 'static' to a large array to avoid a huge stack allocation
author
Reid Kleckner
<reid@kleckner.net>
Thu, 17 Jul 2014 19:43:40 +0000
(19:43 +0000)
committer
Reid Kleckner
<reid@kleckner.net>
Thu, 17 Jul 2014 19:43:40 +0000
(19:43 +0000)
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
utils/TableGen/AsmWriterEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/AsmWriterEmitter.cpp
b/utils/TableGen/AsmWriterEmitter.cpp
index c7fe9dfd685f32910b4691e3b96f28612388378f..7ef70d31b69356e9fe63d6c155d614c212e38d10 100644
(file)
--- a/
utils/TableGen/AsmWriterEmitter.cpp
+++ b/
utils/TableGen/AsmWriterEmitter.cpp
@@
-424,7
+424,7
@@
void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
}
// Emit the string itself.
- O << " const char AsmStrs[] = {\n";
+ O << "
static
const char AsmStrs[] = {\n";
StringTable.emit(O, printChar);
O << " };\n\n";