diff options
author | Emma Pilkington <emma.pilkington95@gmail.com> | 2024-03-06 09:51:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 09:51:48 -0500 |
commit | 4490003a22658dcd12527029b2c8682b63d8a9d6 (patch) | |
tree | 42c4e81ce97bb889524d14f4c2da2818cf53a90c /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 8fdec5d3badb94807d757c0c58a3900704320919 (diff) | |
download | llvm-4490003a22658dcd12527029b2c8682b63d8a9d6.zip llvm-4490003a22658dcd12527029b2c8682b63d8a9d6.tar.gz llvm-4490003a22658dcd12527029b2c8682b63d8a9d6.tar.bz2 |
[AMDGPU] Rename COV module flag to amdhsa_code_object_version (#79905)
The previous name 'amdgpu_code_object_version', was misleading since
this is really a property of the HSA OS. The new spelling also matches
the asm directive I added in bc82cfb.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 82a97ec..d02875c 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -872,12 +872,12 @@ void CodeGenModule::Release() { EmitMainVoidAlias(); if (getTriple().isAMDGPU()) { - // Emit amdgpu_code_object_version module flag, which is code object version + // Emit amdhsa_code_object_version module flag, which is code object version // times 100. if (getTarget().getTargetOpts().CodeObjectVersion != llvm::CodeObjectVersionKind::COV_None) { getModule().addModuleFlag(llvm::Module::Error, - "amdgpu_code_object_version", + "amdhsa_code_object_version", getTarget().getTargetOpts().CodeObjectVersion); } |