From 701e4e9b2b7193bc059c60b211fef8f08fcb7761 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 6 Nov 2009 00:19:43 +0000 Subject: [PATCH] Don't print a redundant tab for inline asm, and do use the new printKill. llvm-svn: 86206 --- llvm/utils/TableGen/AsmWriterEmitter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp index ff348e8e706d..ff83c767f001 100644 --- a/llvm/utils/TableGen/AsmWriterEmitter.cpp +++ b/llvm/utils/TableGen/AsmWriterEmitter.cpp @@ -695,7 +695,6 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) { 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 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) { << " printImplicitDef(MI);\n" << " return;\n" << " } else if (MI->getOpcode() == TargetInstrInfo::KILL) {\n" + << " printKill(MI);\n" << " return;\n" << " }\n\n"; @@ -786,7 +786,6 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) { O << " return;\n"; } - O << " return;\n"; O << "}\n"; }