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
This commit is contained in:
Bill Wendling 2008-03-18 23:38:12 +00:00
parent 586ccac4ec
commit bebc3642d3

View File

@ -90,6 +90,7 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
WeakDefDirective = "\t.weak_definition "; WeakDefDirective = "\t.weak_definition ";
WeakRefDirective = "\t.weak_reference "; WeakRefDirective = "\t.weak_reference ";
HiddenDirective = "\t.private_extern "; HiddenDirective = "\t.private_extern ";
ProtectedDirective = "\t.globl\t";
// In non-PIC modes, emit a special label before jump tables so that the // In non-PIC modes, emit a special label before jump tables so that the
// linker can perform more accurate dead code stripping. // linker can perform more accurate dead code stripping.