capture whether optimizations are enabled or not in debug info

llvm-svn: 70617
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 6f3ecdb..ce06a62 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -103,8 +103,8 @@
     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.