mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[WIP] Emit nominal type access functions for imported types.
Emit nominal type access functions for imported types. These access functions work with non-unique metadata references, so they perform uniquing through the runtime on first access. Fixes rdar://problem/36430234.
This commit is contained in:
@@ -305,6 +305,23 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
|
||||
NominalTypeDescriptorPtrTy
|
||||
= NominalTypeDescriptorTy->getPointerTo(DefaultAS);
|
||||
|
||||
ClassNominalTypeDescriptorTy =
|
||||
llvm::StructType::get(LLVMContext, {
|
||||
Int32Ty,
|
||||
Int32Ty,
|
||||
Int32Ty,
|
||||
Int32Ty,
|
||||
Int32Ty,
|
||||
Int32Ty,
|
||||
Int32Ty,
|
||||
Int32Ty,
|
||||
Int32Ty,
|
||||
Int32Ty,
|
||||
Int16Ty,
|
||||
Int16Ty,
|
||||
Int32Ty,
|
||||
}, /*packed=*/true);
|
||||
|
||||
MethodDescriptorStructTy
|
||||
= createStructType(*this, "swift.method_descriptor", {
|
||||
RelativeAddressTy,
|
||||
|
||||
Reference in New Issue
Block a user