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 | 1c0541b0313e722e8364e6b42292698a8da97f27 (patch) | |
tree | a13cc390181eb172fac704f5120360ee183e156f /llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp | |
parent | 4de7373862e51f47bdfe78640943f55a152c1dae (diff) | |
download | bcm5719-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/Mips/InstPrinter/MipsInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp index 67908227426..6886b174524 100644 --- a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp +++ b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp @@ -62,10 +62,6 @@ const char* Mips::MipsFCCToString(Mips::CondCode CC) { llvm_unreachable("Impossible condition code!"); } -StringRef MipsInstPrinter::getOpcodeName(unsigned Opcode) const { - return MII.getName(Opcode); -} - void MipsInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const { OS << '$' << StringRef(getRegisterName(RegNo)).lower(); } |