aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2023-12-20 20:07:22 +0100
committerDimitry Andric <dimitry@andric.com>2023-12-20 20:07:22 +0100
commit5c1a41f8ad0c02a24345efb4adc424396b7e446b (patch)
treeb5bd924cfde33ba15a1899ee5fd85a1474417695 /clang/lib/CodeGen/CodeGenModule.cpp
parent9055519103eadfba0b48810be926883a71890c55 (diff)
downloadllvm-5c1a41f8ad0c02a24345efb4adc424396b7e446b.zip
llvm-5c1a41f8ad0c02a24345efb4adc424396b7e446b.tar.gz
llvm-5c1a41f8ad0c02a24345efb4adc424396b7e446b.tar.bz2
Revert "[clang] Add getClangVendor() and use it in CodeGenModule.cpp (#75935)"
This reverts commit 9055519103eadfba0b48810be926883a71890c55, due to an incorrectly chosen commit message.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index b2e173d0..7ad26ac 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -995,7 +995,12 @@ void CodeGenModule::Release() {
uint32_t(CLANG_VERSION_MINOR));
getModule().addModuleFlag(llvm::Module::Warning, "zos_product_patchlevel",
uint32_t(CLANG_VERSION_PATCHLEVEL));
- std::string ProductId = getClangVendor() + "clang";
+ std::string ProductId;
+#ifdef CLANG_VENDOR
+ ProductId = #CLANG_VENDOR;
+#else
+ ProductId = "clang";
+#endif
getModule().addModuleFlag(llvm::Module::Error, "zos_product_id",
llvm::MDString::get(VMContext, ProductId));