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:
224a19c
)
allow clients of the asmprinter to opt-out of the boilerplate with a #define.
author
Chris Lattner
<sabre@nondot.org>
Fri, 19 Jun 2009 23:57:53 +0000
(23:57 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 19 Jun 2009 23:57:53 +0000
(23:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73798
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 c615abad5068ee07355121b02e59d5ca63e781e7..183c6912bae9a10f37e4aa226572ca003e8f70fd 100644
(file)
--- a/
utils/TableGen/AsmWriterEmitter.cpp
+++ b/
utils/TableGen/AsmWriterEmitter.cpp
@@
-651,6
+651,8
@@
void AsmWriterEmitter::run(std::ostream &O) {
O << " processDebugLoc(MI->getDebugLoc());\n\n";
+ O << "\n#ifndef NO_ASM_WRITER_BOILERPLATE\n";
+
O << " if (MI->getOpcode() == TargetInstrInfo::INLINEASM) {\n"
<< " O << \"\\t\";\n"
<< " printInlineAsm(MI);\n"
@@
-665,7
+667,9
@@
void AsmWriterEmitter::run(std::ostream &O) {
<< " printImplicitDef(MI);\n"
<< " return true;\n"
<< " }\n\n";
-
+
+ O << "\n#endif\n";
+
O << " O << \"\\t\";\n\n";
O << " // Emit the opcode for the instruction.\n"