[cfe-commits] r83659 - in /cfe/trunk/lib/CodeGen: CGDebugInfo.cpp Makefile
Mike Stump
mrs at apple.com
Fri Oct 9 11:38:12 PDT 2009
Author: mrs
Date: Fri Oct 9 13:38:12 2009
New Revision: 83659
URL: http://llvm.org/viewvc/llvm-project?rev=83659&view=rev
Log:
Allow customization for the producer information in the debug output.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
cfe/trunk/lib/CodeGen/Makefile
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=83659&r1=83658&r2=83659&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Oct 9 13:38:12 2009
@@ -122,7 +122,11 @@
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.
Modified: cfe/trunk/lib/CodeGen/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/Makefile?rev=83659&r1=83658&r2=83659&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/Makefile (original)
+++ cfe/trunk/lib/CodeGen/Makefile Fri Oct 9 13:38:12 2009
@@ -18,6 +18,9 @@
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
More information about the cfe-commits
mailing list