On Darwin, GCC issues a ".globl" for something that has a "visibility protected"
authorBill Wendling <isanbard@gmail.com>
Tue, 18 Mar 2008 23:38:12 +0000 (23:38 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 18 Mar 2008 23:38:12 +0000 (23:38 +0000)
attribute instead of ".protected".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48516 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetAsmInfo.cpp

index 68185ede943f15599f944dbfa474ad1f4736a840..43948ec8ef3c3c1e534236cb2940145a3e9d2f77 100644 (file)
@@ -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.