mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: create InternalWeakODR named IRLinkage (NFC)
Create a new named IRLinkage type: `InternalWeakODR`. This just gives the IRLinkage a semantic name rather than the computed value. NFC.
This commit is contained in:
@@ -975,10 +975,7 @@ void IRGenModule::addLinkLibrary(const LinkLibrary &linkLib) {
|
||||
/*isConstant=*/true,
|
||||
llvm::GlobalValue::WeakODRLinkage,
|
||||
ForceImportThunk, buf.str());
|
||||
ApplyIRLinkage({llvm::GlobalValue::WeakODRLinkage,
|
||||
llvm::GlobalValue::HiddenVisibility,
|
||||
llvm::GlobalValue::DefaultStorageClass})
|
||||
.to(ref);
|
||||
ApplyIRLinkage(IRLinkage::InternalWeakODR).to(ref);
|
||||
auto casted = llvm::ConstantExpr::getBitCast(ref, Int8PtrTy);
|
||||
LLVMUsed.push_back(casted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user