diff options
author | Devang Patel <dpatel@apple.com> | 2009-04-13 04:22:59 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-04-13 04:22:59 +0000 |
commit | 7486af8fc2c10e2883687d0494b18e092e4b9d1a (patch) | |
tree | 74e27cc638240b428edead0c405340804320a8ee | |
parent | 81edc9f60ec55cca6acebc714b8b0d623b926842 (diff) |
Enable debug info generation while optimizing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68936 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/clang-cc/Backend.cpp | 6 |
1 files changed, 0 insertions, 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<CompileOptions&>(CompileOpts).DebugInfo = false; - return new BackendConsumer(Action, Diags, LangOpts, CompileOpts, InFile, OutFile); } |