[llvm] [PowerPC][AIX] Emit PowerPC version for XCOFF (PR #95510)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 20 07:32:09 PDT 2024


================
@@ -145,7 +145,7 @@ Symbols:
 # SYMBOL64-NEXT:     Value (SymbolTableIndex): 0x0
 # SYMBOL64-NEXT:     Section: N_DEBUG
 # SYMBOL64-NEXT:     Source Language ID: TB_C (0x0)
-# SYMBOL64-NEXT:     CPU Version ID: 0x0
+# SYMBOL64-NEXT:     CPU Version ID: TCPU_INVALID (0x0)
----------------
EsmeYi wrote:

This field is omitted in yaml, therefore the value written into XCOFF is zero by default, which corresponds to `TCPU_INVALID`. I don't think we should make `llvm-readobj` print a value that doesn't match what it actually is?

https://github.com/llvm/llvm-project/pull/95510


More information about the llvm-commits mailing list