forked from OSchip/llvm-project
Propagate debug info when building SelectionDAG.
llvm-svn: 63359
This commit is contained in:
parent
33a21670f4
commit
ed255b3d8e
|
@ -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
Loading…
Reference in New Issue