[llvm-branch-commits] [llvm-gcc-branch] r82298 - /llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-backend.cpp
Devang Patel
dpatel at apple.com
Fri Sep 18 15:32:07 PDT 2009
Author: dpatel
Date: Fri Sep 18 17:32:07 2009
New Revision: 82298
URL: http://llvm.org/viewvc/llvm-project?rev=82298&view=rev
Log:
Backout patch that enabled debug info for global variables at -O1+
Modified:
llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-backend.cpp?rev=82298&r1=82297&r2=82298&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-backend.cpp Fri Sep 18 17:32:07 2009
@@ -1386,7 +1386,10 @@
#endif
}
- if (TheDebugInfo) {
+ // No debug info for globals when optimization is on. While this is
+ // something that would be accurate and useful to a user, it currently
+ // affects some optimizations that, e.g., count uses.
+ if (TheDebugInfo && !optimize) {
const char *Name = GV->getName().c_str();
const char LPrefix[] = "\01L_OBJC_";
const char lPrefix[] = "\01l_OBJC_";
More information about the llvm-branch-commits
mailing list