summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-08-12 18:03:30 +0000
committerChris Lattner <sabre@nondot.org>2011-08-12 18:03:30 +0000
commit2f50231c1072b6e61a6928ec49b8405a743c2f98 (patch)
treee407a2278b5aed2d5b6b35e5d3afc64209c7b197 /llvm/lib
parentdb4374a28ae034b6971c68865bc19b790716fb64 (diff)
downloadbcm5719-llvm-2f50231c1072b6e61a6928ec49b8405a743c2f98.tar.gz
bcm5719-llvm-2f50231c1072b6e61a6928ec49b8405a743c2f98.zip
forward to the correct constructor.
llvm-svn: 137479
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Type.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp
index 51e6006eee4..decb50cd4d2 100644
--- a/llvm/lib/VMCore/Type.cpp
+++ b/llvm/lib/VMCore/Type.cpp
@@ -487,7 +487,7 @@ StructType *StructType::get(Type *type, ...) {
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;
}
@@ -497,7 +497,7 @@ StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements) {
}
StructType *StructType::create(LLVMContext &Context) {
- return create(Context, ArrayRef<Type*>(), StringRef());
+ return create(Context, StringRef());
}
@@ -530,7 +530,6 @@ StructType *StructType::create(StringRef Name, Type *type, ...) {
-
StructType *StructType::createNamed(LLVMContext &Context, StringRef Name,
ArrayRef<Type*> Elements, bool isPacked) {
StructType *ST = createNamed(Context, Name);
OpenPOWER on IntegriCloud