[cfe-commits] r111927 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Daniel Dunbar daniel at zuster.org
Tue Aug 24 10:41:09 PDT 2010


Author: ddunbar
Date: Tue Aug 24 12:41:09 2010
New Revision: 111927

URL: http://llvm.org/viewvc/llvm-project?rev=111927&view=rev
Log:
Debug Info: Put full Clang version into the debug info, to make it easier to
identify what version of the compiler was used to build something.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=111927&r1=111926&r2=111927&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Tue Aug 24 12:41:09 2010
@@ -224,11 +224,7 @@
     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;





More information about the cfe-commits mailing list