]> granicus.if.org Git - clang/commitdiff
Debug Info: Put full Clang version into the debug info, to make it easier to
authorDaniel Dunbar <daniel@zuster.org>
Tue, 24 Aug 2010 17:41:09 +0000 (17:41 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 24 Aug 2010 17:41:09 +0000 (17:41 +0000)
identify what version of the compiler was used to build something.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111927 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 6f06ed2b028b4412138aeda3f3441e4c42ff8c94..388d45c253b9d4057fe94750e964f3ad074fce63 100644 (file)
@@ -224,11 +224,7 @@ void CGDebugInfo::CreateCompileUnit() {
     LangTag = llvm::dwarf::DW_LANG_C89;
   }
 
-  const char *Producer =
-#ifdef CLANG_VENDOR
-    CLANG_VENDOR
-#endif
-    "clang " CLANG_VERSION_STRING;
+  std::string Producer = getClangFullVersion();
 
   // Figure out which version of the ObjC runtime we have.
   unsigned RuntimeVers = 0;