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 | bebc3642d354ef744f3fd55a20d28ba29ec51063 (patch) | |
tree | b3cc918c1961c00a7ed526a4dacd0ffb4e01e93e /lib/Target/X86/X86TargetAsmInfo.cpp | |
parent | 586ccac4ec4d023864e720dc36373809b9b88b09 (diff) | |
download | llvm-bebc3642d354ef744f3fd55a20d28ba29ec51063.tar.gz llvm-bebc3642d354ef744f3fd55a20d28ba29ec51063.tar.bz2 llvm-bebc3642d354ef744f3fd55a20d28ba29ec51063.tar.xz |
On Darwin, GCC issues a ".globl" for something that has a "visibility protected"
attribute instead of ".protected".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetAsmInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index 68185ede94..43948ec8ef 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/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. |