]> granicus.if.org Git - clang/commitdiff
Enable debug info generation while optimizing.
authorDevang Patel <dpatel@apple.com>
Mon, 13 Apr 2009 04:22:59 +0000 (04:22 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 13 Apr 2009 04:22:59 +0000 (04:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68936 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-cc/Backend.cpp

index 3b3be31866ee2c386d5304123f8fcd94171f523e..58ecedb7f2c1216a176946e104bcf97807142e98 100644 (file)
@@ -425,12 +425,6 @@ ASTConsumer *clang::CreateBackendConsumer(BackendAction Action,
                                           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);  
 }