diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-09-20 07:25:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-09-20 07:25:17 +0000 |
| commit | 609fbed49ffd61030e2f6f502e8d8e17349ab7f5 (patch) | |
| tree | 26907dd716c9825d2c253120090a805f4f7793cc /llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | |
| parent | b0225ba2899acbd8332a5a66731af2f994e61eeb (diff) | |
| download | bcm5719-llvm-609fbed49ffd61030e2f6f502e8d8e17349ab7f5.tar.gz bcm5719-llvm-609fbed49ffd61030e2f6f502e8d8e17349ab7f5.zip | |
delete X86IntelAsmPrinter! Now -x86-asm-syntax just switches
the instruction syntax, not the entire asmprinter.
llvm-svn: 82387
Diffstat (limited to 'llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index d0a4e575ed6..5d646b08c43 100644 --- a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -16,6 +16,7 @@ #define DEBUG_TYPE "asm-printer" #include "X86ATTAsmPrinter.h" #include "X86ATTInstPrinter.h" +#include "X86IntelInstPrinter.h" #include "X86MCInstLower.h" #include "X86.h" #include "X86COFF.h" @@ -50,7 +51,10 @@ STATISTIC(EmittedInsts, "Number of machine instrs printed"); //===----------------------------------------------------------------------===// void X86ATTAsmPrinter::printMCInst(const MCInst *MI) { - X86ATTInstPrinter(O, *MAI).printInstruction(MI); + if (MAI->getAssemblerDialect() == 0) + X86ATTInstPrinter(O, *MAI).printInstruction(MI); + else + X86IntelInstPrinter(O, *MAI).printInstruction(MI); } void X86ATTAsmPrinter::PrintPICBaseSymbol() const { |

