diff options
author | Chris Lattner <sabre@nondot.org> | 2011-08-12 18:03:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-08-12 18:03:30 +0000 |
commit | 8dcfc74af42cca1feecd3331dd11b494b0f02792 (patch) | |
tree | 995379bc2cf86fc56172ec9f01f89050557e66f9 /lib/VMCore/Type.cpp | |
parent | 2e85b1bfa7412577dd61f21ea10a686d3685144b (diff) | |
download | llvm-8dcfc74af42cca1feecd3331dd11b494b0f02792.tar.gz llvm-8dcfc74af42cca1feecd3331dd11b494b0f02792.tar.bz2 llvm-8dcfc74af42cca1feecd3331dd11b494b0f02792.tar.xz |
forward to the correct constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r-- | lib/VMCore/Type.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 51e6006eee..decb50cd4d 100644 --- a/lib/VMCore/Type.cpp +++ b/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); |