mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Implement grabbing an external value witness table. I
described this mangling in a previous commit, and the runtime is already using it for some standard tables. Swift SVN r2870
This commit is contained in:
@@ -75,7 +75,11 @@ IRGenModule::IRGenModule(ASTContext &Context,
|
||||
|
||||
DtorTy = llvm::FunctionType::get(SizeTy, RefCountedPtrTy, false);
|
||||
llvm::Type *dtorPtrTy = DtorTy->getPointerTo();
|
||||
llvm::Type *heapMetadataElts[] = { dtorPtrTy, dtorPtrTy };
|
||||
|
||||
// Note that heap metadata share a common prefix with type metadata.
|
||||
llvm::Type *heapMetadataElts[] = {
|
||||
Int8Ty, WitnessTablePtrTy, dtorPtrTy, dtorPtrTy
|
||||
};
|
||||
HeapMetadataStructTy =
|
||||
llvm::StructType::create(getLLVMContext(), heapMetadataElts,
|
||||
"swift.heapmetadata");
|
||||
|
||||
Reference in New Issue
Block a user