diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-08-24 17:41:09 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-24 17:41:09 +0000 |
| commit | 64c222a6bcb9292dc49ea5fdb2c45ef4f8e4ec16 (patch) | |
| tree | 88966ce4f63b1da768ce2aafc999a07970622b29 | |
| parent | afad82e4d0ae26a918885cb562b8b556da545990 (diff) | |
| download | bcm5719-llvm-64c222a6bcb9292dc49ea5fdb2c45ef4f8e4ec16.tar.gz bcm5719-llvm-64c222a6bcb9292dc49ea5fdb2c45ef4f8e4ec16.zip | |
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
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 6f06ed2b028..388d45c253b 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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; |

