mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -624,6 +624,10 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
|
||||
{RelativeAddressTy, RelativeAddressTy, RelativeAddressTy,
|
||||
RelativeAddressTy, Int32Ty});
|
||||
|
||||
RuntimeDiscoverableAttributeTy =
|
||||
createStructType(*this, "swift.runtime_attr",
|
||||
{Int32Ty, RelativeAddressTy, Int32Ty});
|
||||
|
||||
AsyncFunctionPointerTy = createStructType(*this, "swift.async_func_pointer",
|
||||
{RelativeAddressTy, Int32Ty}, true);
|
||||
SwiftContextTy = llvm::StructType::create(getLLVMContext(), "swift.context");
|
||||
@@ -1195,6 +1199,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