[llvm-branch-commits] [llvm-gcc-branch] r101301 - /llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-debug.cpp

Devang Patel dpatel at apple.com
Wed Apr 14 15:25:27 PDT 2010


Author: dpatel
Date: Wed Apr 14 17:25:27 2010
New Revision: 101301

URL: http://llvm.org/viewvc/llvm-project?rev=101301&view=rev
Log:
Enable local variable debug info at -O1+. Take2.

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

Modified: llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-debug.cpp?rev=101301&r1=101300&r2=101301&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-debug.cpp Wed Apr 14 17:25:27 2010
@@ -445,10 +445,6 @@
 void DebugInfo::EmitDeclare(tree decl, unsigned Tag, const char *Name,
                             tree type, Value *AI, LLVMBuilder &Builder) {
 
-  // Do not emit variable declaration info, for now.
-  if (optimize)
-    return;
-
   // Ignore compiler generated temporaries.
   if (DECL_IGNORED_P(decl))
     return;





More information about the llvm-branch-commits mailing list