allow clients of the asmprinter to opt-out of the boilerplate with a #define.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73798 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-06-19 23:57:53 +00:00
parent 224a19c490
commit 5b842c3690

View File

@ -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"