From 7486af8fc2c10e2883687d0494b18e092e4b9d1a Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 13 Apr 2009 04:22:59 +0000 Subject: [PATCH] Enable debug info generation while optimizing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68936 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-cc/Backend.cpp | 6 ------ 1 file changed, 6 deletions(-) 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); } -- 2.40.0