[llvm-commits] [dragonegg] r98956 - /dragonegg/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Fri Mar 19 04:14:18 PDT 2010
Author: baldrick
Date: Fri Mar 19 06:14:18 2010
New Revision: 98956
URL: http://llvm.org/viewvc/llvm-project?rev=98956&view=rev
Log:
Port commit 98316 (dpatel) from llvm-gcc:
Delete module before llvm_shutdown().
There is no need to destruct llvm symbols in orderly manner if compile time is important in release builds.
Modified:
dragonegg/trunk/llvm-backend.cpp
Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=98956&r1=98955&r2=98956&view=diff
==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Fri Mar 19 06:14:18 2010
@@ -1469,7 +1469,10 @@
if (Finalized)
return;
+#ifndef NDEBUG
+ delete TheModule;
llvm_shutdown();
+#endif
Finalized = true;
}
More information about the llvm-commits
mailing list