From: Bill Wendling Date: Tue, 18 Mar 2008 23:38:12 +0000 (+0000) Subject: On Darwin, GCC issues a ".globl" for something that has a "visibility protected" X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bebc3642d354ef744f3fd55a20d28ba29ec51063;p=oota-llvm.git 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 --- diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index 68185ede943..43948ec8ef3 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.