diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-02 08:32:38 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-02 08:32:38 +0000 |
commit | c97ef618d2d849a272a353c2b4343fc5902cd921 (patch) | |
tree | d2c5330be5ec0c4964a9e87564b9ec6ce504e3fc /lib/Target/PTX | |
parent | fab3f7ee6f2adca5037f597ce4f28c5acdcbd852 (diff) | |
download | external_llvm-c97ef618d2d849a272a353c2b4343fc5902cd921.zip external_llvm-c97ef618d2d849a272a353c2b4343fc5902cd921.tar.gz external_llvm-c97ef618d2d849a272a353c2b4343fc5902cd921.tar.bz2 |
Move getOpcodeName from the various target InstPrinters into the superclass MCInstPrinter.
All implementations used the same code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PTX')
-rw-r--r-- | lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp | 4 | ||||
-rw-r--r-- | lib/Target/PTX/InstPrinter/PTXInstPrinter.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp b/lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp index 3aa3b26..1830213 100644 --- a/lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp +++ b/lib/Target/PTX/InstPrinter/PTXInstPrinter.cpp @@ -36,10 +36,6 @@ PTXInstPrinter::PTXInstPrinter(const MCAsmInfo &MAI, setAvailableFeatures(STI.getFeatureBits()); } -StringRef PTXInstPrinter::getOpcodeName(unsigned Opcode) const { - return MII.getName(Opcode); -} - void PTXInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const { // Decode the register number into type and offset unsigned RegSpace = RegNo & 0x7; diff --git a/lib/Target/PTX/InstPrinter/PTXInstPrinter.h b/lib/Target/PTX/InstPrinter/PTXInstPrinter.h index b01293a..ea4d504 100644 --- a/lib/Target/PTX/InstPrinter/PTXInstPrinter.h +++ b/lib/Target/PTX/InstPrinter/PTXInstPrinter.h @@ -27,7 +27,6 @@ public: const MCRegisterInfo &MRI, const MCSubtargetInfo &STI); virtual void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot); - virtual StringRef getOpcodeName(unsigned Opcode) const; virtual void printRegName(raw_ostream &OS, unsigned RegNo) const; // Autogenerated by tblgen. |