Move CurDebugLoc into SelectionDAGLowering.

llvm-svn: 63468
This commit is contained in:
Dale Johannesen 2009-01-31 02:22:37 +00:00
parent 414be71cd6
commit 067e8ef08f
3 changed files with 233 additions and 228 deletions

View File

@ -79,9 +79,6 @@ class SelectionDAG {
MachineModuleInfo *MMI;
DwarfWriter *DW;
/// CurDebugLoc - current file + line number. Changes as we build the DAG.
DebugLoc CurDebugLoc;
/// EntryNode - The starting token.
SDNode EntryNode;
@ -140,7 +137,6 @@ public:
FunctionLoweringInfo &getFunctionLoweringInfo() const { return FLI; }
MachineModuleInfo *getMachineModuleInfo() const { return MMI; }
DwarfWriter *getDwarfWriter() const { return DW; }
DebugLoc getCurDebugLoc() const { return CurDebugLoc; }
/// viewGraph - Pop up a GraphViz/gv window with the DAG rendered using 'dot'.
///
@ -199,8 +195,6 @@ public:
return Root = N;
}
void setCurDebugLoc(DebugLoc dl) { CurDebugLoc = dl; }
/// Combine - This iterates over the nodes in the SelectionDAG, folding
/// certain types of nodes together, or eliminating superfluous nodes. The
/// Level argument controls whether Combine is allowed to produce nodes and

File diff suppressed because it is too large Load Diff

View File

@ -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