diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-11 22:39:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-11 22:39:10 +0000 |
commit | 7e85180d15c4d5a451fbc078f7194a41c6230a57 (patch) | |
tree | 40ad0af5702dbbc64ff14cc1225a5431c65c3b37 /lib/MC/MCInstPrinter.cpp | |
parent | 780679baa7008e54cb94f383c5b13ee995e21fe3 (diff) | |
download | external_llvm-7e85180d15c4d5a451fbc078f7194a41c6230a57.zip external_llvm-7e85180d15c4d5a451fbc078f7194a41c6230a57.tar.gz external_llvm-7e85180d15c4d5a451fbc078f7194a41c6230a57.tar.bz2 |
add a new MCInstPrinter::getOpcodeName interface, when it is
implemented, llvm-mc --show-inst now uses it to print the
instruction opcode as well as the number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCInstPrinter.cpp')
-rw-r--r-- | lib/MC/MCInstPrinter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/MC/MCInstPrinter.cpp b/lib/MC/MCInstPrinter.cpp index e90c03c..92a7154 100644 --- a/lib/MC/MCInstPrinter.cpp +++ b/lib/MC/MCInstPrinter.cpp @@ -8,7 +8,14 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCInstPrinter.h" +#include "llvm/ADT/StringRef.h" using namespace llvm; MCInstPrinter::~MCInstPrinter() { } + +/// getOpcodeName - Return the name of the specified opcode enum (e.g. +/// "MOV32ri") or empty if we can't resolve it. +StringRef MCInstPrinter::getOpcodeName(unsigned Opcode) const { + return ""; +} |