[PATCH] D134195: [PowerPC] XCOFF exception section support on the integrated assembler path
Digger Lin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 07:30:44 PDT 2022
DiggerLin added inline comments.
================
Comment at: llvm/lib/MC/XCOFFObjectWriter.cpp:797
+ is64Bit() ? SymbolRef.getVisibilityType()
+ : SymbolRef.getVisibilityType() | 0x0020,
+ SymbolRef.getStorageClass(),
----------------
we emit the xcoff object code as old interpret (SymbolRef.getVisibilityType() | 0x0020). ?
if we want to interpret as old version what about the code in line 818.
```
writeSymbolEntry(SymbolRef.getSymbolTableName(),
CSectionRef.Address + SymbolOffset, SectionIndex,
SymbolRef.getVisibilityType(),
SymbolRef.getStorageClass());
```
================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-exception-section-debug.ll:1
+; RUN: llc -O0 -mtriple=powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s
+; RUN: llvm-readobj --syms %t.o | FileCheck %s --check-prefix=SYMS32
----------------
Maybe better to add comment to explain the purpose of the new added test case.
================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-exception-section.ll:1
+; RUN: llc -O0 -mtriple=powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s
+; RUN: llvm-readobj --exception-section %t.o | FileCheck %s --check-prefix=EXCEPT
----------------
Maybe better to add comment to explain the purpose of the new added test case.
================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-exception-section.ll:5
+; RUN: llvm-readobj --syms %t.o | FileCheck %s --check-prefix=SYMS
+; RUN: llvm-objdump --section-headers %t.o | FileCheck %s --check-prefix=DUMP
+
----------------
is the test duplicate with
; RUN: llvm-readobj --section-headers %t.o | FileCheck %s --check-prefix=READ ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134195/new/
https://reviews.llvm.org/D134195
More information about the llvm-commits
mailing list