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

Daniel Dunbar daniel at zuster.org
Mon Apr 13 13:46:34 PDT 2009


Author: ddunbar
Date: Mon Apr 13 15:46:33 2009
New Revision: 68983

URL: http://llvm.org/viewvc/llvm-project?rev=68983&view=rev
Log:
Reapply 68936, turned out to that clang's better debug info exposed a
codegenerator bug.

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=68983&r1=68982&r2=68983&view=diff

==============================================================================
--- cfe/trunk/tools/clang-cc/Backend.cpp (original)
+++ cfe/trunk/tools/clang-cc/Backend.cpp Mon Apr 13 15:46:33 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