[PATCH] D85414: [test][DebugInfo] Adapt two tests for Sun assembler syntax on Sparc

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 01:20:11 PDT 2020


ro added a comment.

In D85414#2201806 <https://reviews.llvm.org/D85414#2201806>, @MaskRay wrote:

> .section is consistent on ELF, COFF, Mach-O and wasm. We could use `.section {{.*}}debug_info` (On Mach-O it is `.section __DWARF,__debug_info,regular,debug`)

This works fine indeed (tested on `sparcv9-sun-solaris2.11` with both the Sun and common ELF section syntax, `amd64-pc-solaris2.11`, `x86_64-pc-linux-gnu`, and `x86_64-apple-darwin20.0.0`, here using the `llc` from the 11.0.0 rc1 tarball and running `FileCheck` on a different system).

It has the additional advantage of not requiring any special handling for the Sun section syntax that may well go away.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85414/new/

https://reviews.llvm.org/D85414



More information about the llvm-commits mailing list