Propagate debug info when building SelectionDAG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen 2009-01-30 01:34:22 +00:00
parent 6360089d63
commit fa42dea48b
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