diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-04-02 07:01:04 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-04-02 07:01:04 +0000 |
commit | dab9e35ad05afef53e15e57462a0b85943a64735 (patch) | |
tree | 7644363a90d1bc291d5bdfa7aa21a930f3f90ecb /llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp | |
parent | 8e52bdce7bea9e9b0ad99768a2d902d3590e4188 (diff) | |
download | bcm5719-llvm-dab9e35ad05afef53e15e57462a0b85943a64735.tar.gz bcm5719-llvm-dab9e35ad05afef53e15e57462a0b85943a64735.zip |
Remove getInstructionName from MCInstPrinter implementations in favor of using the instruction name table from MCInstrInfo. Reduces static data in the InstPrinter implementations.
llvm-svn: 153863
Diffstat (limited to 'llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp index ec35d3c911e..8bf9058dd5d 100644 --- a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp +++ b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp @@ -19,6 +19,7 @@ #include "llvm/MC/MCInst.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCExpr.h" +#include "llvm/MC/MCInstrInfo.h" #include "llvm/MC/MCRegisterInfo.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/Format.h" @@ -27,7 +28,6 @@ using namespace llvm; // Include the auto-generated portion of the assembly writer. -#define GET_INSTRUCTION_NAME #define PRINT_ALIAS_INSTR #include "X86GenAsmWriter.inc" @@ -51,7 +51,7 @@ void X86ATTInstPrinter::printInst(const MCInst *MI, raw_ostream &OS, } StringRef X86ATTInstPrinter::getOpcodeName(unsigned Opcode) const { - return getInstructionName(Opcode); + return MII.getName(Opcode); } void X86ATTInstPrinter::printSSECC(const MCInst *MI, unsigned Op, |