Re-did 60519. It turns out Darwin's handling of hidden visibility symbols are a bit...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 5 Dec 2008 01:06:39 +0000 (01:06 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 5 Dec 2008 01:06:39 +0000 (01:06 +0000)
commitae94e594164b193236002516970aeec4c4574768
tree00f4a5e3d57725f8b01a1ca106e61cba657d8ded
parentcd730fa3377ba9f019c810c3181390960b85e831
Re-did 60519. It turns out Darwin's handling of hidden visibility symbols are a bit more complicate than I expected. Both declarations and weak definitions still need a stub indirection. However, the stubs are in data section and they contain the addresses of the actual symbols.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60571 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
lib/Target/X86/X86Subtarget.cpp
test/CodeGen/PowerPC/hidden-vis-2.ll [new file with mode: 0644]
test/CodeGen/PowerPC/hidden-vis.ll [new file with mode: 0644]
test/CodeGen/X86/hidden-vis-2.ll
test/CodeGen/X86/hidden-vis-3.ll [new file with mode: 0644]
test/CodeGen/X86/hidden-vis-4.ll [new file with mode: 0644]