aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitf57e106e4ef58a165435aef6683db98b559f594b (patch)
treea26cd258b1c1141d3b68b3083b0270f565a45b31 /lib/CodeGen/MachineModuleInfo.cpp
parent5687d8a26c08d089c60df2c92d048ab85bcdb2b9 (diff)
downloadexternal_llvm-f57e106e4ef58a165435aef6683db98b559f594b.zip
external_llvm-f57e106e4ef58a165435aef6683db98b559f594b.tar.gz
external_llvm-f57e106e4ef58a165435aef6683db98b559f594b.tar.bz2
Clear variable debug info map at the end of the function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--lib/CodeGen/MachineModuleInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp
index 8661b9e..b62803f 100644
--- a/lib/CodeGen/MachineModuleInfo.cpp
+++ b/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.