[llvm-commits] [llvm-gcc-4.2] r62110 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp

Devang Patel dpatel at apple.com
Mon Jan 12 14:29:26 PST 2009


Author: dpatel
Date: Mon Jan 12 16:29:25 2009
New Revision: 62110

URL: http://llvm.org/viewvc/llvm-project?rev=62110&view=rev
Log:
Disable debug info generation while writing pch because it does not work properly right now.
Note, this does not mean we are losing debug type info for the types that are defined in pch header.

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=62110&r1=62109&r2=62110&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Mon Jan 12 16:29:25 2009
@@ -246,7 +246,9 @@
   else
     RegisterRegAlloc::setDefault(createLocalRegisterAllocator);
 
-  if (!optimize && debug_info_level > DINFO_LEVEL_NONE)
+  // FIXME - Do not disable debug info while writing pch.
+  if (!flag_pch_file &&
+      !optimize && debug_info_level > DINFO_LEVEL_NONE)
     TheDebugInfo = new DebugInfo(TheModule);
 }
 
@@ -282,7 +284,9 @@
   TheModule = ParseBitcodeFile(MB, &ErrMsg);
   delete MB;
 
-  if (!optimize && debug_info_level > DINFO_LEVEL_NONE)
+  // FIXME - Do not disable debug info while writing pch.
+  if (!flag_pch_file &&
+      !optimize && debug_info_level > DINFO_LEVEL_NONE)
     TheDebugInfo = new DebugInfo(TheModule);
 
   if (!TheModule) {





More information about the llvm-commits mailing list