[llvm-commits] [llvm] r86206 - /llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Dan Gohman
gohman at apple.com
Thu Nov 5 16:19:43 PST 2009
Author: djg
Date: Thu Nov 5 18:19:43 2009
New Revision: 86206
URL: http://llvm.org/viewvc/llvm-project?rev=86206&view=rev
Log:
Don't print a redundant tab for inline asm, and do use the new printKill.
Modified:
llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=86206&r1=86205&r2=86206&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Thu Nov 5 18:19:43 2009
@@ -695,7 +695,6 @@
O << "\n#ifndef NO_ASM_WRITER_BOILERPLATE\n";
O << " if (MI->getOpcode() == TargetInstrInfo::INLINEASM) {\n"
- << " O << \"\\t\";\n"
<< " printInlineAsm(MI);\n"
<< " return;\n"
<< " } else if (MI->isLabel()) {\n"
@@ -705,6 +704,7 @@
<< " printImplicitDef(MI);\n"
<< " return;\n"
<< " } else if (MI->getOpcode() == TargetInstrInfo::KILL) {\n"
+ << " printKill(MI);\n"
<< " return;\n"
<< " }\n\n";
@@ -786,7 +786,6 @@
O << " return;\n";
}
- O << " return;\n";
O << "}\n";
}
More information about the llvm-commits
mailing list