]> granicus.if.org Git - clang/commitdiff
Be sure to use the correct version instead of inventing the wrong one.
authorMike Stump <mrs@apple.com>
Tue, 15 Sep 2009 21:48:34 +0000 (21:48 +0000)
committerMike Stump <mrs@apple.com>
Tue, 15 Sep 2009 21:48:34 +0000 (21:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81924 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index aaaa4d4fa57937301c27865295fc3cbc9b2144a0..9de3fb7ae6458f5f9bb00986e45a23f180c39fa8 100644 (file)
@@ -19,6 +19,7 @@
 #include "clang/AST/RecordLayout.h"
 #include "clang/Basic/SourceManager.h"
 #include "clang/Basic/FileManager.h"
+#include "clang/Basic/Version.h"
 #include "clang/Frontend/CompileOptions.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
@@ -104,7 +105,7 @@ llvm::DICompileUnit CGDebugInfo::getOrCreateCompileUnit(SourceLocation Loc) {
     LangTag = llvm::dwarf::DW_LANG_C89;
   }
 
-  std::string Producer = "clang 1.0";// FIXME: clang version.
+  std::string Producer = "clang " CLANG_VERSION_STRING;
   bool isOptimized = LO.Optimize;
   const char *Flags = "";   // FIXME: Encode command line options.