[llvm-commits] [llvm-gcc-4.2] r98316 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Devang Patel
dpatel at apple.com
Thu Mar 11 16:38:19 PST 2010
Author: dpatel
Date: Thu Mar 11 18:38:18 2010
New Revision: 98316
URL: http://llvm.org/viewvc/llvm-project?rev=98316&view=rev
Log:
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:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=98316&r1=98315&r2=98316&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Thu Mar 11 18:38:18 2010
@@ -974,7 +974,10 @@
// llvm_call_llvm_shutdown - Release LLVM global state.
void llvm_call_llvm_shutdown(void) {
+#ifndef NDEBUG
+ delete TheModule;
llvm_shutdown();
+#endif
}
/// llvm_emit_code_for_current_function - Top level interface for emitting a
More information about the llvm-commits
mailing list