diff options
author | Mike Stump <mrs@apple.com> | 2009-10-09 18:38:12 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-10-09 18:38:12 +0000 |
commit | fc8ff639cb1742a5b84c400e30572d2f2a31fe27 (patch) | |
tree | 6bbc4aed0e3c8bec5a209e2cd9c7b8916ebf9e6a /clang | |
parent | dd76bb23d1ba3a7386504bed2fb097af66c50b42 (diff) | |
download | bcm5719-llvm-fc8ff639cb1742a5b84c400e30572d2f2a31fe27.tar.gz bcm5719-llvm-fc8ff639cb1742a5b84c400e30572d2f2a31fe27.zip |
Allow customization for the producer information in the debug output.
llvm-svn: 83659
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 6 | ||||
-rw-r--r-- | clang/lib/CodeGen/Makefile | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 31f74a13490..620037c2750 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -122,7 +122,11 @@ llvm::DICompileUnit CGDebugInfo::getOrCreateCompileUnit(SourceLocation Loc) { LangTag = llvm::dwarf::DW_LANG_C89; } - std::string Producer = "clang " CLANG_VERSION_STRING; + std::string Producer = +#ifdef CLANG_VENDOR + CLANG_VENDOR +#endif + "clang " CLANG_VERSION_STRING; bool isOptimized = LO.Optimize; const char *Flags = ""; // FIXME: Encode command line options. diff --git a/clang/lib/CodeGen/Makefile b/clang/lib/CodeGen/Makefile index e716fe78bc6..108490b71d4 100644 --- a/clang/lib/CodeGen/Makefile +++ b/clang/lib/CodeGen/Makefile @@ -18,6 +18,9 @@ BUILD_ARCHIVE = 1 CXXFLAGS = -fno-rtti CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include +ifdef CLANG_VENDOR +CPPFLAGS += -DCLANG_VENDOR='"$(CLANG_VENDOR) "' +endif include $(LEVEL)/Makefile.common |