[llvm-commits] [llvm-gcc-4.2] r52484 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Bill Wendling
isanbard at gmail.com
Wed Jun 18 19:32:40 PDT 2008
Author: void
Date: Wed Jun 18 21:32:39 2008
New Revision: 52484
URL: http://llvm.org/viewvc/llvm-project?rev=52484&view=rev
Log:
Build the new TheDebugInfo object conditionally (just as when it was created).
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=52484&r1=52483&r2=52484&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Wed Jun 18 21:32:39 2008
@@ -236,9 +236,11 @@
std::string ErrMsg;
TheModule = ParseBitcodeFile(MB, &ErrMsg);
- TheDebugInfo = new DebugInfo(TheModule);
delete MB;
+ if (!optimize && debug_info_level > DINFO_LEVEL_NONE)
+ TheDebugInfo = new DebugInfo(TheModule);
+
if (!TheModule) {
cerr << "Error reading bytecodes from PCH file\n";
cerr << ErrMsg << "\n";
More information about the llvm-commits
mailing list