mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 02:28:23 +00:00
Propagate debug info when building SelectionDAG.
llvm-svn: 63359
This commit is contained in:
parent
270009c8ab
commit
4855b2e85d
@ -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
Block a user