AArch64: use linker-private symbols for globals in MachO.
authorTim Northover <tnorthover@apple.com>
Mon, 15 May 2017 21:51:38 +0000 (21:51 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 15 May 2017 21:51:38 +0000 (21:51 +0000)
commit203c6f055d55db1d99ef074e9a8122a47d669b4d
treea8ec24c90595f1a120e63ca9669fdf1ccdc0d97a
parent441cfee780c5c9be461012e53ed5a7e1b837fd31
AArch64: use linker-private symbols for globals in MachO.

We don't use section-relative relocations on AArch64, so all symbols must be at
least visible to the linker (i.e. properly global or l_whatever, but not
L_whatever).

llvm-svn: 303118
llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
llvm/test/CodeGen/AArch64/arm64-hello.ll
llvm/test/CodeGen/AArch64/macho-global-symbols.ll [new file with mode: 0644]