[llvm] [AMDGPU] Add an asm directive to track code_object_version (PR #76267)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 7 10:57:42 PST 2024
================
@@ -279,6 +280,10 @@ class MCAssembler {
unsigned getELFHeaderEFlags() const { return ELFHeaderEFlags; }
void setELFHeaderEFlags(unsigned Flags) { ELFHeaderEFlags = Flags; }
+ /// ELF e_ident[EI_ABIVERSION] value
+ unsigned char getELFHeaderABIVersion() const { return ELFHeaderABIVersion; }
----------------
MaskRay wrote:
See `llvm/lib/MC/MCELFStreamer.cpp:Asm.getWriter().markGnuAbi()`. This can be moved to `ELFObjectWriter` and revert the `MCELFObjectTargetWriter` change below.
https://github.com/llvm/llvm-project/pull/76267
More information about the llvm-commits
mailing list