summaryrefslogtreecommitdiffstats
path: root/llvm/include
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
commitd9e12345af1992f6874569711efa0bafed0be02d (patch)
treefa1dafc2b7ca4ed669ca29e1b49aa21b23544e86 /llvm/include
parent84c6f0a1e6a951276fde603431b7917d43cee089 (diff)
downloadbcm5719-llvm-d9e12345af1992f6874569711efa0bafed0be02d.tar.gz
bcm5719-llvm-d9e12345af1992f6874569711efa0bafed0be02d.zip
add a gross hack to get "SrcLine" comments to show up with the
new asmprinter. Differently gross hack coming next. llvm-svn: 81379
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/MC/MCInst.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCInst.h b/llvm/include/llvm/MC/MCInst.h
index a6bd45b493b..9facf3bb5b5 100644
--- a/llvm/include/llvm/MC/MCInst.h
+++ b/llvm/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]; }
OpenPOWER on IntegriCloud