[clang] [SystemZ][z/OS] This change adds support for the PPA2 section in zOS (PR #68926)
Yusra Syeda via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 17 14:06:04 PDT 2023
================
@@ -976,6 +976,24 @@ void CodeGenModule::Release() {
Context.getTypeSizeInChars(Context.getWideCharType()).getQuantity();
getModule().addModuleFlag(llvm::Module::Error, "wchar_size", WCharWidth);
+ if (getTriple().isOSzOS()) {
+ int32_t ProductVersion, ProductRelease, ProductPatch;
+ ProductVersion = LLVM_VERSION_MAJOR, ProductRelease = LLVM_VERSION_MINOR,
+ ProductPatch = LLVM_VERSION_PATCH;
+ getModule().addModuleFlag(llvm::Module::Warning, "Product Major Version",
+ ProductVersion);
+ getModule().addModuleFlag(llvm::Module::Warning, "Product Minor Version",
+ ProductRelease);
+ getModule().addModuleFlag(llvm::Module::Warning, "Product Patchlevel",
+ ProductPatch);
----------------
ysyeda wrote:
This has been changed to use the `CLANG_VERSION_MAJOR`, `CLANG_VERSION_MINOR`, etc.
https://github.com/llvm/llvm-project/pull/68926
More information about the cfe-commits
mailing list