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:
@@ -81,14 +81,14 @@ static llvm::StructType *createStructType(IRGenModule &IGM,
|
||||
ArrayRef<llvm::Type*>(types.begin(),
|
||||
types.size()),
|
||||
name, packed);
|
||||
};
|
||||
}
|
||||
|
||||
/// A helper for creating pointer-to-struct types.
|
||||
static llvm::PointerType *createStructPointerType(IRGenModule &IGM,
|
||||
StringRef name,
|
||||
std::initializer_list<llvm::Type*> types) {
|
||||
return createStructType(IGM, name, types)->getPointerTo(DefaultAS);
|
||||
};
|
||||
}
|
||||
|
||||
static clang::CodeGenerator *createClangCodeGenerator(ASTContext &Context,
|
||||
llvm::LLVMContext &LLVMContext,
|
||||
|
||||
Reference in New Issue
Block a user