Propagate debug info when building SelectionDAG.

llvm-svn: 63359
This commit is contained in:
Dale Johannesen 2009-01-30 01:34:22 +00:00
parent 270009c8ab
commit 4855b2e85d
2 changed files with 525 additions and 399 deletions

View File

@ -79,6 +79,9 @@ 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;
@ -137,6 +140,7 @@ 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'.
///
@ -195,6 +199,8 @@ 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