aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-03-28 17:52:27 -0700
committerFangrui Song <i@maskray.me>2022-03-28 17:52:27 -0700
commitcfbd5c8e4aa1ba3fc11fb408eeedbb05bd235956 (patch)
treed7f344346290fba28b2e1c671bfdfbd08407f99e /llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
parenta427e18896dee3cd00d5f565cfb9d7d2f26ebcec (diff)
downloadllvm-cfbd5c8e4aa1ba3fc11fb408eeedbb05bd235956.zip
llvm-cfbd5c8e4aa1ba3fc11fb408eeedbb05bd235956.tar.gz
llvm-cfbd5c8e4aa1ba3fc11fb408eeedbb05bd235956.tar.bz2
[AArch64] Allow .variant_pcs before the symbol is registered
glibc sysdeps/aarch64/tst-vpcs-mod.S has something like: ``` .variant_pcs vpcs_call .global vpcs_call ``` This is supported by GNU as but leads to an error in MC. Use getOrCreateSymbol to support a not-yet-registered symbol: call `registerSymbol` to ensure the symbol exists even if there is no binding directive/label, to match GNU as. While here, improve tests to check (1) a local symbol can get STO_AARCH64_VARIANT_PCS (2) undefined .variant_pcs (3) an alias does not inherit STO_AARCH64_VARIANT_PCS. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D122507
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp')
0 files changed, 0 insertions, 0 deletions