mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IRGen] Make it possible to get address of accessible func record
Runtime metadata attributes need a pointer to a generator that could be used to instantiate an attribute value.
This commit is contained in:
@@ -1196,6 +1196,12 @@ Address IRGenModule::getAddrOfObjCISAMask() {
|
||||
return Address(ObjCISAMaskPtr, IntPtrTy, getPointerAlignment());
|
||||
}
|
||||
|
||||
llvm::Constant *
|
||||
IRGenModule::getAddrOfAccessibleFunctionRecord(SILFunction *accessibleFn) {
|
||||
auto entity = LinkEntity::forAccessibleFunctionRecord(accessibleFn);
|
||||
return getAddrOfLLVMVariable(entity, ConstantInit(), DebugTypeInfo());
|
||||
}
|
||||
|
||||
ModuleDecl *IRGenModule::getSwiftModule() const {
|
||||
return IRGen.SIL.getSwiftModule();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user