[cfe-commits] r81924 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Mike Stump
mrs at apple.com
Tue Sep 15 14:48:34 PDT 2009
Author: mrs
Date: Tue Sep 15 16:48:34 2009
New Revision: 81924
URL: http://llvm.org/viewvc/llvm-project?rev=81924&view=rev
Log:
Be sure to use the correct version instead of inventing the wrong one.
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=81924&r1=81923&r2=81924&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Tue Sep 15 16:48:34 2009
@@ -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 @@
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.
More information about the cfe-commits
mailing list