summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-08 20:41:17 +0000
committerDevang Patel <dpatel@apple.com>2009-10-08 20:41:17 +0000
commite1969dcd110261be9cd09d28a993d2dc5feadb9f (patch)
tree28c062b2cb4ad68b63490782ebbd306383929659 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parentc2728f44a9aaf0fc797554dade6fcf3f45ceeb9f (diff)
downloadbcm5719-llvm-e1969dcd110261be9cd09d28a993d2dc5feadb9f.tar.gz
bcm5719-llvm-e1969dcd110261be9cd09d28a993d2dc5feadb9f.zip
Clear variable debug info map at the end of the function.
llvm-svn: 83571
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index 8661b9ee132..b62803f105e 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp
@@ -76,6 +76,9 @@ void MachineModuleInfo::EndFunction() {
FilterEnds.clear();
CallsEHReturn = 0;
CallsUnwindInit = 0;
+#ifdef ATTACH_DEBUG_INFO_TO_AN_INSN
+ VariableDbgInfo.clear();
+#endif
}
/// AnalyzeModule - Scan the module for global debug information.
OpenPOWER on IntegriCloud