summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/InstrEmitter.h
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-03-06 00:03:23 +0000
committerDale Johannesen <dalej@apple.com>2010-03-06 00:03:23 +0000
commit06a26637daff1bb785ef0945d1ba05f6ccdfab86 (patch)
tree3a457e05ed9f2e607357db34b327359a64b477be /lib/CodeGen/SelectionDAG/InstrEmitter.h
parent0fa9d1d9011a98212b66daf27f6a8a3d734ae818 (diff)
downloadllvm-06a26637daff1bb785ef0945d1ba05f6ccdfab86.tar.gz
llvm-06a26637daff1bb785ef0945d1ba05f6ccdfab86.tar.bz2
llvm-06a26637daff1bb785ef0945d1ba05f6ccdfab86.tar.xz
Add some new bits of debug info handling. No
functional change yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/InstrEmitter.h')
-rw-r--r--lib/CodeGen/SelectionDAG/InstrEmitter.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.h b/lib/CodeGen/SelectionDAG/InstrEmitter.h
index 91817e4d38..4fe9f19cc9 100644
--- a/lib/CodeGen/SelectionDAG/InstrEmitter.h
+++ b/lib/CodeGen/SelectionDAG/InstrEmitter.h
@@ -23,6 +23,7 @@
namespace llvm {
class TargetInstrDesc;
+class SDDbgValue;
class InstrEmitter {
MachineFunction *MF;
@@ -97,6 +98,16 @@ public:
/// MachineInstr.
static unsigned CountOperands(SDNode *Node);
+ /// EmitDbgValue - Generate any debug info that refers to this Node. Constant
+ /// dbg_value is not handled here.
+ void EmitDbgValue(SDNode *Node,
+ DenseMap<SDValue, unsigned> &VRBaseMap,
+ SDDbgValue* sd);
+
+
+ /// EmitDbgValue - Generate a constant DBG_VALUE. No node is involved.
+ void EmitDbgValue(SDDbgValue* sd);
+
/// EmitNode - Generate machine code for a node and needed dependencies.
///
void EmitNode(SDNode *Node, bool IsClone, bool IsCloned,