[llvm-commits] [llvm-gcc-4.2] r98316 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Jeffrey Yasskin
jyasskin at google.com
Thu Mar 11 16:44:55 PST 2010
Thanks! Sorry I didn't get around to this.
On Thu, Mar 11, 2010 at 4:38 PM, Devang Patel <dpatel at apple.com> wrote:
> 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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list