[llvm-commits] [llvm-gcc-4.2] r67957 - /llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp

Bill Wendling isanbard at gmail.com
Sat Mar 28 14:13:14 PDT 2009


Author: void
Date: Sat Mar 28 16:13:14 2009
New Revision: 67957

URL: http://llvm.org/viewvc/llvm-project?rev=67957&view=rev
Log:
--- Merging (from foreign repository) r67884 into '.':
U    gcc/llvm-debug.cpp

Enable debug info at -O.  I've fixed a lot of
bugs where -g affects optimization recently; there
are currently no such cases in the llvm testsuite or
a substantial amount of other code on Darwin, which
seems sufficient to turn it on.  Woot.  I make
no claims about the quality of the generated debug
info.

Any cases where you see -g affecting optimization can
now usefully be reported as bugs.  TEST=ipodbgopt should
test this in the llvm testsuite.

Modified:
    llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp

Modified: llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp?rev=67957&r1=67956&r2=67957&view=diff

==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp Sat Mar 28 16:13:14 2009
@@ -307,13 +307,9 @@
 }
 
 /// EmitStopPoint - Emit a call to llvm.dbg.stoppoint to indicate a change of 
-/// source line - "llvm.dbg.stoppoint."
+/// source line - "llvm.dbg.stoppoint."  Now enabled with -O.
 void DebugInfo::EmitStopPoint(Function *Fn, BasicBlock *CurBB) {
 
-  // Do not emit line number info, for now.
-  if (optimize)
-    return;
-
   // Don't bother if things are the same as last time.
   if (PrevLineNo == CurLineNo &&
       PrevBB == CurBB &&





More information about the llvm-commits mailing list