From: Daniel Dunbar Date: Mon, 13 Apr 2009 20:46:33 +0000 (+0000) Subject: Reapply 68936, turned out to that clang's better debug info exposed a X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1810790f12628f57c607816f0753ec818c7855a8;p=clang Reapply 68936, turned out to that clang's better debug info exposed a codegenerator bug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68983 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-cc/Backend.cpp b/tools/clang-cc/Backend.cpp index 3b3be31866..58ecedb7f2 100644 --- a/tools/clang-cc/Backend.cpp +++ b/tools/clang-cc/Backend.cpp @@ -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(CompileOpts).DebugInfo = false; - return new BackendConsumer(Action, Diags, LangOpts, CompileOpts, InFile, OutFile); }