summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCInst.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-09 20:45:42 +0000
committerChris Lattner <sabre@nondot.org>2009-09-09 20:45:42 +0000
commit65c060064d129e1bacc9204fd032fe81c4c669c4 (patch)
treeb56594860e3e651377150b296144a49eea6d6598 /include/llvm/MC/MCInst.h
parent634cca377a8254cfe8a5afe99ef2e6c6db7f0c6b (diff)
downloadllvm-65c060064d129e1bacc9204fd032fe81c4c669c4.tar.gz
llvm-65c060064d129e1bacc9204fd032fe81c4c669c4.tar.bz2
llvm-65c060064d129e1bacc9204fd032fe81c4c669c4.tar.xz
add a gross hack to get "SrcLine" comments to show up with the
new asmprinter. Differently gross hack coming next. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCInst.h')
-rw-r--r--include/llvm/MC/MCInst.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h
index a6bd45b493..9facf3bb5b 100644
--- a/include/llvm/MC/MCInst.h
+++ b/include/llvm/MC/MCInst.h
@@ -132,13 +132,18 @@ public:
class MCInst {
unsigned Opcode;
SmallVector<MCOperand, 8> Operands;
+
+ // FIXME: This is a hack!
+ DebugLoc Loc;
public:
MCInst() : Opcode(~0U) {}
void setOpcode(unsigned Op) { Opcode = Op; }
unsigned getOpcode() const { return Opcode; }
- DebugLoc getDebugLoc() const { return DebugLoc(); }
+
+ void setDebugLoc(DebugLoc L) { Loc = L; }
+ DebugLoc getDebugLoc() const { return Loc; }
const MCOperand &getOperand(unsigned i) const { return Operands[i]; }
MCOperand &getOperand(unsigned i) { return Operands[i]; }