]> granicus.if.org Git - clang/commitdiff
Allow customization for the producer information in the debug output.
authorMike Stump <mrs@apple.com>
Fri, 9 Oct 2009 18:38:12 +0000 (18:38 +0000)
committerMike Stump <mrs@apple.com>
Fri, 9 Oct 2009 18:38:12 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83659 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/Makefile

index 31f74a13490de6ab030e45a66dcb336cc6e1c766..620037c275010e34fa01796e714b369c4c1f4ee5 100644 (file)
@@ -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.
 
index e716fe78bc60962e6ac53f52c2f467286e98fae1..108490b71d48e414ae69d1fb06bad338f8730c35 100644 (file)
@@ -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