[llvm-commits] [llvm-gcc-4.2] r67884 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Dale Johannesen
dalej at apple.com
Fri Mar 27 17:32:18 PDT 2009
Author: johannes
Date: Fri Mar 27 19:32:17 2009
New Revision: 67884
URL: http://llvm.org/viewvc/llvm-project?rev=67884&view=rev
Log:
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/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=67884&r1=67883&r2=67884&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Fri Mar 27 19:32:17 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