diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-03-18 23:38:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-03-18 23:38:12 +0000 |
commit | 2f6ab65d77016b43db87576a48adf77e4963c3f0 (patch) | |
tree | 953b867fe05db926786da860739ce6ac1a0b562b /llvm/lib | |
parent | 484064370a2e1879c16c327f28d97b0538d50060 (diff) | |
download | bcm5719-llvm-2f6ab65d77016b43db87576a48adf77e4963c3f0.tar.gz bcm5719-llvm-2f6ab65d77016b43db87576a48adf77e4963c3f0.zip |
On Darwin, GCC issues a ".globl" for something that has a "visibility protected"
attribute instead of ".protected".
llvm-svn: 48516
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetAsmInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp index 68185ede943..43948ec8ef3 100644 --- a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp @@ -90,6 +90,7 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) { WeakDefDirective = "\t.weak_definition "; WeakRefDirective = "\t.weak_reference "; HiddenDirective = "\t.private_extern "; + ProtectedDirective = "\t.globl\t"; // In non-PIC modes, emit a special label before jump tables so that the // linker can perform more accurate dead code stripping. |