diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-19 23:59:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-19 23:59:57 +0000 |
commit | d5fb7906130989a579d1bfe4490b414331e94fee (patch) | |
tree | 4c9421c0a78c150d4979e818abeb395e78b2e5d5 /include/llvm/MC/MCInst.h | |
parent | 5b842c369097b22e0abca58bfc49e63919b28a58 (diff) | |
download | llvm-d5fb7906130989a579d1bfe4490b414331e94fee.tar.gz llvm-d5fb7906130989a579d1bfe4490b414331e94fee.tar.bz2 llvm-d5fb7906130989a579d1bfe4490b414331e94fee.tar.xz |
stub out some hacky code for wiring up the new asmprinter interfaces
on X86. Not useful yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCInst.h')
-rw-r--r-- | include/llvm/MC/MCInst.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index 4ed9dc7e3f..4f7e6cf0b4 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -19,6 +19,7 @@ #include "llvm/ADT/SmallVector.h" #include "llvm/Support/DataTypes.h" +#include "llvm/Support/DebugLoc.h" namespace llvm { @@ -84,7 +85,10 @@ class MCInst { public: MCInst() : Opcode(~0U) {} + unsigned getOpcode() const { return Opcode; } + DebugLoc getDebugLoc() const { return DebugLoc(); } + const MCOperand &getOperand(unsigned i) const { return Operands[i]; } }; |