[ARM] Use getSymbolPreferLocal() in GetARMGVSymbol
authorAlex Richardson <alexrichardson@google.com>
Tue, 9 Aug 2022 09:36:29 +0000 (09:36 +0000)
committerAlex Richardson <alexrichardson@google.com>
Tue, 9 Aug 2022 09:53:47 +0000 (09:53 +0000)
commit6db15a82cc0966458c2b7d84b39f42ef09d2ac20
treefc8b50ddedfd9fe91f2d0fe0dddb560cd0c99487
parentfa210dd67b458f7a11631c7fb2eebb05f4849ce5
[ARM] Use getSymbolPreferLocal() in GetARMGVSymbol

This allows relaxing some relocations to STT_SECTION symbol+offset
instead of emitting a relocation against a symbol.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D131433
llvm/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/test/CodeGen/ARM/dso-local-func.ll
llvm/test/CodeGen/ARM/elf-preemption.ll
llvm/test/CodeGen/ARM/thumb-function-section-reloc.ll