summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/InstPrinter
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-04-02 08:32:38 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-04-02 08:32:38 +0000
commit1c0541b0313e722e8364e6b42292698a8da97f27 (patch)
treea13cc390181eb172fac704f5120360ee183e156f /llvm/lib/Target/PowerPC/InstPrinter
parent4de7373862e51f47bdfe78640943f55a152c1dae (diff)
downloadbcm5719-llvm-1c0541b0313e722e8364e6b42292698a8da97f27.tar.gz
bcm5719-llvm-1c0541b0313e722e8364e6b42292698a8da97f27.zip
Move getOpcodeName from the various target InstPrinters into the superclass MCInstPrinter.
All implementations used the same code. llvm-svn: 153866
Diffstat (limited to 'llvm/lib/Target/PowerPC/InstPrinter')
-rw-r--r--llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp4
-rw-r--r--llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h1
2 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
index 6e85ab926cd..61d23ce06aa 100644
--- a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
@@ -23,10 +23,6 @@ using namespace llvm;
#include "PPCGenAsmWriter.inc"
-StringRef PPCInstPrinter::getOpcodeName(unsigned Opcode) const {
- return MII.getName(Opcode);
-}
-
void PPCInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
OS << getRegisterName(RegNo);
}
diff --git a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h
index d4d3929777b..73fd5342a16 100644
--- a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h
+++ b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h
@@ -34,7 +34,6 @@ public:
virtual void printRegName(raw_ostream &OS, unsigned RegNo) const;
virtual void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot);
- virtual StringRef getOpcodeName(unsigned Opcode) const;
// Autogenerated by tblgen.
void printInstruction(const MCInst *MI, raw_ostream &O);
OpenPOWER on IntegriCloud