From: Chris Lattner Date: Sat, 2 May 2009 01:04:13 +0000 (+0000) Subject: capture whether optimizations are enabled or not in debug info X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b95ee58f6c9838695b1704e879e263aec49bfa88;p=clang capture whether optimizations are enabled or not in debug info git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70617 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 6f3ecdbc06..ce06a62003 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -103,8 +103,8 @@ llvm::DICompileUnit CGDebugInfo::getOrCreateCompileUnit(SourceLocation Loc) { LangTag = llvm::dwarf::DW_LANG_C89; } - std::string Producer = "clang";// FIXME: clang version. - bool isOptimized = false; // FIXME: Encode optimization level. + std::string Producer = "clang 1.0";// FIXME: clang version. + bool isOptimized = LO.Optimize; const char *Flags = ""; // FIXME: Encode command line options. // Figure out which version of the ObjC runtime we have.