]> granicus.if.org Git - clang/commitdiff
capture whether optimizations are enabled or not in debug info
authorChris Lattner <sabre@nondot.org>
Sat, 2 May 2009 01:04:13 +0000 (01:04 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 2 May 2009 01:04:13 +0000 (01:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70617 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 6f3ecdbc06fb902a10625c927d42a24cd7272935..ce06a620034d9645b3ee45e8d881e95107ca46e8 100644 (file)
@@ -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.