summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-09-11 17:24:29 +0000
committerDuncan Sands <baldrick@free.fr>2009-09-11 17:24:29 +0000
commit4bd8040d14589b0900954672bc86c15bd6e0e7d0 (patch)
treee6551f235027bb2721b0e5fc9071b6dba1f58d07
parent992e42b606f273b33fca40a6e3c678736aa3d54f (diff)
downloadbcm5719-llvm-4bd8040d14589b0900954672bc86c15bd6e0e7d0.tar.gz
bcm5719-llvm-4bd8040d14589b0900954672bc86c15bd6e0e7d0.zip
Fix PR4948 (and a leak): by not destroying the DwarfException
object, the timer it creates was not being deleted. Since the timer belonged to a static timer group, the timer group would be destroyed on shutdown, and would notice and complain that not all timers it contained were destroyed. llvm-svn: 81533
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index aafac71b229..fed9668fccd 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -51,6 +51,8 @@ void DwarfWriter::BeginModule(Module *M,
void DwarfWriter::EndModule() {
DE->EndModule();
DD->EndModule();
+ delete DD; DD = 0;
+ delete DE; DE = 0;
}
/// BeginFunction - Gather pre-function debug information. Assumes being
OpenPOWER on IntegriCloud