mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-02 09:33:59 +00:00
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:
parent
224a19c490
commit
5b842c3690
@ -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"
|
||||
@ -666,6 +668,8 @@ void AsmWriterEmitter::run(std::ostream &O) {
|
||||
<< " return true;\n"
|
||||
<< " }\n\n";
|
||||
|
||||
O << "\n#endif\n";
|
||||
|
||||
O << " O << \"\\t\";\n\n";
|
||||
|
||||
O << " // Emit the opcode for the instruction.\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user