[cfe-commits] r68936 - /cfe/trunk/tools/clang-cc/Backend.cpp

Devang Patel dpatel at apple.com
Sun Apr 12 21:23:02 PDT 2009


Author: dpatel
Date: Sun Apr 12 23:22:59 2009
New Revision: 68936

URL: http://llvm.org/viewvc/llvm-project?rev=68936&view=rev
Log:
Enable debug info generation while optimizing.

Modified:
    cfe/trunk/tools/clang-cc/Backend.cpp

Modified: cfe/trunk/tools/clang-cc/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/Backend.cpp?rev=68936&r1=68935&r2=68936&view=diff

==============================================================================
--- cfe/trunk/tools/clang-cc/Backend.cpp (original)
+++ cfe/trunk/tools/clang-cc/Backend.cpp Sun Apr 12 23:22:59 2009
@@ -425,12 +425,6 @@
                                           const CompileOptions &CompileOpts,
                                           const std::string& InFile,
                                           const std::string& OutFile) {
-  // FIXME: If optimizing, disable all debug info generation.  The LLVM
-  // optimizer and backend is not ready to handle it when optimizations
-  // are enabled.
-  if (CompileOpts.OptimizationLevel > 0)
-    const_cast<CompileOptions&>(CompileOpts).DebugInfo = false;
-    
   return new BackendConsumer(Action, Diags, LangOpts, CompileOpts,
                              InFile, OutFile);  
 }





More information about the cfe-commits mailing list