diff options
author | Chris Lattner <sabre@nondot.org> | 2009-05-02 01:04:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-05-02 01:04:13 +0000 |
commit | b95ee58f6c9838695b1704e879e263aec49bfa88 (patch) | |
tree | b4a1afcb0405ee366cf96318b2bd5cfec5cc6d13 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 4c2577a31f460afc1f0110b937a250b8e2a1b789 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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. |