Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2021-11-30 08:33:02 -08:00
61 changed files with 99 additions and 93 deletions

View File

@@ -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,