diff options
author | Dimitry Andric <dimitry@andric.com> | 2023-12-20 20:07:22 +0100 |
---|---|---|
committer | Dimitry Andric <dimitry@andric.com> | 2023-12-20 20:07:22 +0100 |
commit | 5c1a41f8ad0c02a24345efb4adc424396b7e446b (patch) | |
tree | b5bd924cfde33ba15a1899ee5fd85a1474417695 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 9055519103eadfba0b48810be926883a71890c55 (diff) | |
download | llvm-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.cpp | 7 |
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)); |