From c1c20114a401e503c07d68c47e0728bb063f35c8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 12 Aug 2011 17:43:31 +0000 Subject: switch clang to use the new-new way of creating llvm::StructType's. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137472 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenTypes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CodeGenTypes.cpp') diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 856b1f9dc2..e863f77901 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -510,7 +510,7 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) { // these. llvm::Type *&T = InterfaceTypes[cast(Ty)]; if (!T) - T = llvm::StructType::createNamed(getLLVMContext(), ""); + T = llvm::StructType::create(getLLVMContext()); ResultType = T; break; } @@ -567,7 +567,7 @@ llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { // If we don't have a StructType at all yet, create the forward declaration. if (Entry == 0) { - Entry = llvm::StructType::createNamed(getLLVMContext(), ""); + Entry = llvm::StructType::create(getLLVMContext()); addRecordTypeName(RD, Entry, ""); } llvm::StructType *Ty = Entry; -- cgit v1.2.3