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.

llvm-svn: 111927
This commit is contained in:
Daniel Dunbar
2010-08-24 17:41:09 +00:00
parent afad82e4d0
commit 64c222a6bc

View 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;