mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: use named IRLinkage a bit more (NFC)
Use the `IRLInkage::InternalLinkOnceODR` linkage rather than computing that in a couple of sites. This gives us semantic meaning to the linkage being applied. NFC.
This commit is contained in:
@@ -230,10 +230,7 @@ llvm::Constant *IRGenModule::getMangledAssociatedConformance(
|
||||
llvm::GlobalValue::LinkOnceODRLinkage,
|
||||
nullptr,
|
||||
symbolName);
|
||||
ApplyIRLinkage({llvm::GlobalValue::LinkOnceODRLinkage,
|
||||
llvm::GlobalValue::HiddenVisibility,
|
||||
llvm::GlobalValue::DefaultStorageClass})
|
||||
.to(var);
|
||||
ApplyIRLinkage(IRLinkage::InternalLinkOnceODR).to(var);
|
||||
var->setAlignment(2);
|
||||
setTrueConstGlobal(var);
|
||||
var->setSection(getReflectionTypeRefSectionName());
|
||||
|
||||
Reference in New Issue
Block a user