summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-05-23 17:44:13 +0000
committerDevang Patel <dpatel@apple.com>2011-05-23 17:44:13 +0000
commit233857537f61a8f4ab93624986676c25b2271bc7 (patch)
tree2d6b0282206abb67831bcfcf7fd0728f488ac332 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
parent35b6994608b2b7c86714cc464dfb2d086b0cafca (diff)
downloadllvm-233857537f61a8f4ab93624986676c25b2271bc7.tar.gz
llvm-233857537f61a8f4ab93624986676c25b2271bc7.tar.bz2
llvm-233857537f61a8f4ab93624986676c25b2271bc7.tar.xz
Preserve debug info during iSel by keeping DanglingDebugInfoMap live until end of function.
Patch by Micah Villmow git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
index a689b76cdc..8376d41e15 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
@@ -332,6 +332,14 @@ public:
/// consumed.
void clear();
+ /// clearDanglingDebugInfo - Clear the dangling debug information
+ /// map. This function is seperated from the clear so that debug
+ /// information that is dangling in a basic block can be properly
+ /// resolved in a different basic block. This allows the
+ /// SelectionDAG to resolve dangling debug information attached
+ /// to PHI nodes.
+ void clearDanglingDebugInfo();
+
/// getRoot - Return the current virtual root of the Selection DAG,
/// flushing any PendingLoad items. This must be done before emitting
/// a store or any other node that may need to be ordered after any