llvm.org GIT mirror llvm / f991ecf
Symbols with LinkerPrivateLinkage are weak. This allows WebKit to build again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78872 91177308-0d34-0410-b5e6-96231b3b80d8 Dale Johannesen 10 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
173173 default: llvm_unreachable("Unknown linkage type!");
174174 case Function::InternalLinkage: // Symbols default to internal.
175175 case Function::PrivateLinkage:
176 case Function::LinkerPrivateLinkage:
177176 break;
178177 case Function::DLLExportLinkage:
179178 case Function::ExternalLinkage:
180179 O << "\t.globl\t" << CurrentFnName << '\n';
181180 break;
181 case Function::LinkerPrivateLinkage:
182182 case Function::LinkOnceAnyLinkage:
183183 case Function::LinkOnceODRLinkage:
184184 case Function::WeakAnyLinkage:
852852 case GlobalValue::LinkOnceODRLinkage:
853853 case GlobalValue::WeakAnyLinkage:
854854 case GlobalValue::WeakODRLinkage:
855 case GlobalValue::LinkerPrivateLinkage:
855856 if (Subtarget->isTargetDarwin()) {
856857 O << "\t.globl " << name << '\n'
857858 << TAI->getWeakDefDirective() << name << '\n';
871872 O << "\t.globl " << name << '\n';
872873 // FALL THROUGH
873874 case GlobalValue::PrivateLinkage:
874 case GlobalValue::LinkerPrivateLinkage:
875875 case GlobalValue::InternalLinkage:
876876 break;
877877 default: