summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-01-31 02:22:37 +0000
committerDale Johannesen <dalej@apple.com>2009-01-31 02:22:37 +0000
commitdb7c5f6a7b25bed22a4f0b65103b7bc92b8c7ae8 (patch)
treedbbf92382c3d6c8d80a36f9a89cc00913cb8f009 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
parenta37249c66371f13f9e3a94231c1f688e81683c1f (diff)
downloadbcm5719-llvm-db7c5f6a7b25bed22a4f0b65103b7bc92b8c7ae8.tar.gz
bcm5719-llvm-db7c5f6a7b25bed22a4f0b65103b7bc92b8c7ae8.zip
Move CurDebugLoc into SelectionDAGLowering.
llvm-svn: 63468
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
index 4d450cb60db..397f7b1a249 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
@@ -164,6 +164,9 @@ public:
class SelectionDAGLowering {
MachineBasicBlock *CurMBB;
+ /// CurDebugLoc - current file + line number. Changes as we build the DAG.
+ DebugLoc CurDebugLoc;
+
DenseMap<const Value*, SDValue> NodeMap;
/// PendingLoads - Loads are not emitted to the program immediately. We bunch
@@ -356,7 +359,8 @@ public:
SelectionDAGLowering(SelectionDAG &dag, TargetLowering &tli,
FunctionLoweringInfo &funcinfo)
- : TLI(tli), DAG(dag), FuncInfo(funcinfo) {
+ : CurDebugLoc(DebugLoc::getUnknownLoc()),
+ TLI(tli), DAG(dag), FuncInfo(funcinfo) {
}
void init(GCFunctionInfo *gfi, AliasAnalysis &aa);
@@ -382,6 +386,8 @@ public:
///
SDValue getControlRoot();
+ DebugLoc getCurDebugLoc() const { return CurDebugLoc; }
+
void CopyValueToVirtualRegister(Value *V, unsigned Reg);
void visit(Instruction &I);
@@ -531,6 +537,8 @@ private:
const char *implVisitBinaryAtomic(CallInst& I, ISD::NodeType Op);
const char *implVisitAluOverflow(CallInst &I, ISD::NodeType Op);
+
+ void setCurDebugLoc(DebugLoc dl) { CurDebugLoc = dl; }
};
/// AddCatchInfo - Extract the personality and type infos from an eh.selector
OpenPOWER on IntegriCloud