StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements,
StringRef Name, bool isPacked) {
- StructType *ST = createNamed(Context, Name);
+ StructType *ST = create(Context, Name);
ST->setBody(Elements, isPacked);
return ST;
}
}
StructType *StructType::create(LLVMContext &Context) {
- return create(Context, ArrayRef<Type*>(), StringRef());
+ return create(Context, StringRef());
}
-
StructType *StructType::createNamed(LLVMContext &Context, StringRef Name,
ArrayRef<Type*> Elements, bool isPacked) {
StructType *ST = createNamed(Context, Name);