diff options
| author | Mike Stump <mrs@apple.com> | 2009-09-15 21:48:34 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@apple.com> | 2009-09-15 21:48:34 +0000 |
| commit | c3844bea75adda0fda6915b44951f330c84a391b (patch) | |
| tree | c77dcd1261955710ca5b5d4877f6b47a0064169a /clang/lib/CodeGen/CGDebugInfo.cpp | |
| parent | 7a27b9342c696c8b88e78378f53cca2c1e254473 (diff) | |
| download | bcm5719-llvm-c3844bea75adda0fda6915b44951f330c84a391b.tar.gz bcm5719-llvm-c3844bea75adda0fda6915b44951f330c84a391b.zip | |
Be sure to use the correct version instead of inventing the wrong one.
llvm-svn: 81924
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index aaaa4d4fa57..9de3fb7ae64 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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. |

