[cfe-commits] r64349 - /cfe/trunk/Driver/Backend.cpp
Chris Lattner
sabre at nondot.org
Wed Feb 11 17:50:58 PST 2009
Author: lattner
Date: Wed Feb 11 19:50:58 2009
New Revision: 64349
URL: http://llvm.org/viewvc/llvm-project?rev=64349&view=rev
Log:
for now, disable all debug info generation at -O1 and above. This mirrors
similar logic in llvm-gcc and will hopefully be fixed soon.
Modified:
cfe/trunk/Driver/Backend.cpp
Modified: cfe/trunk/Driver/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/Backend.cpp?rev=64349&r1=64348&r2=64349&view=diff
==============================================================================
--- cfe/trunk/Driver/Backend.cpp (original)
+++ cfe/trunk/Driver/Backend.cpp Wed Feb 11 19:50:58 2009
@@ -369,6 +369,13 @@
const std::string& InFile,
const std::string& OutFile,
bool GenerateDebugInfo) {
+ // 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)
+ GenerateDebugInfo = false;
+
+
return new BackendConsumer(Action, Diags, Features, CompileOpts,
InFile, OutFile, GenerateDebugInfo);
}
More information about the cfe-commits
mailing list