mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
add support for hidden visibility to darwin/x86
llvm-svn: 33198
This commit is contained in:
parent
a8f6e90cac
commit
f43ad084b8
@ -125,8 +125,9 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (F->hasHiddenVisibility() && !Subtarget->isTargetDarwin())
|
||||
O << "\t.hidden " << CurrentFnName << "\n";
|
||||
if (F->hasHiddenVisibility())
|
||||
if (const char *Directive = TAI->getHiddenDirective())
|
||||
O << Directive << CurrentFnName << "\n";
|
||||
|
||||
O << CurrentFnName << ":\n";
|
||||
// Add some workaround for linkonce linkage on Cygwin\MinGW
|
||||
|
@ -246,8 +246,9 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
||||
EmitGlobalConstant(C);
|
||||
O << '\n';
|
||||
}
|
||||
if (I->hasHiddenVisibility() && !Subtarget->isTargetDarwin())
|
||||
O << "\t.hidden " << name << "\n";
|
||||
if (I->hasHiddenVisibility())
|
||||
if (const char *Directive = TAI->getHiddenDirective())
|
||||
O << Directive << name << "\n";
|
||||
}
|
||||
|
||||
// Output linker support code for dllexported globals
|
||||
|
@ -64,6 +64,7 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
|
||||
SetDirective = "\t.set";
|
||||
UsedDirective = "\t.no_dead_strip\t";
|
||||
WeakRefDirective = "\t.weak_reference\t";
|
||||
HiddenDirective = "\t.private_extern\t";
|
||||
|
||||
NeedsSet = true;
|
||||
DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
|
||||
|
Loading…
Reference in New Issue
Block a user