зеркало из https://github.com/microsoft/clang-1.git
Revert 68936, LLVM still isn't ready to handle debug info + optimization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68972 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
283a062a63
Коммит
5c71e59660
|
@ -425,6 +425,12 @@ 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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче