mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
sink handling of target-independent machine instrs (other
than DEBUG_VALUE :( ) into the target indep AsmPrinter.cpp file. This allows elimination of the NO_ASM_WRITER_BOILERPLATE hack among other things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95177 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -692,24 +692,6 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
|
||||
StringTable.EmitString(O);
|
||||
O << ";\n\n";
|
||||
|
||||
O << "\n#ifndef NO_ASM_WRITER_BOILERPLATE\n";
|
||||
|
||||
O << " if (MI->getOpcode() == TargetInstrInfo::INLINEASM) {\n"
|
||||
<< " printInlineAsm(MI);\n"
|
||||
<< " return;\n"
|
||||
<< " } else if (MI->isLabel()) {\n"
|
||||
<< " printLabel(MI);\n"
|
||||
<< " return;\n"
|
||||
<< " } else if (MI->getOpcode() == TargetInstrInfo::IMPLICIT_DEF) {\n"
|
||||
<< " printImplicitDef(MI);\n"
|
||||
<< " return;\n"
|
||||
<< " } else if (MI->getOpcode() == TargetInstrInfo::KILL) {\n"
|
||||
<< " printKill(MI);\n"
|
||||
<< " return;\n"
|
||||
<< " }\n\n";
|
||||
|
||||
O << "\n#endif\n";
|
||||
|
||||
O << " O << \"\\t\";\n\n";
|
||||
|
||||
O << " // Emit the opcode for the instruction.\n"
|
||||
|
||||
Reference in New Issue
Block a user