From: Devang Patel Date: Thu, 1 Nov 2007 00:11:37 +0000 (+0000) Subject: Remove unnecessary method. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2527d1664bb1be21e8a9a43194e4267a9ff7ab4;p=clang Remove unnecessary method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43591 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CodeGen/CodeGenTypes.cpp b/CodeGen/CodeGenTypes.cpp index 7ecf9f16e8..d19b0a9efd 100644 --- a/CodeGen/CodeGenTypes.cpp +++ b/CodeGen/CodeGenTypes.cpp @@ -62,8 +62,6 @@ namespace { return STy; } - /// Clear private data so that this object can be reused. - void clear(); private: CodeGenTypes &CGT; llvm::Type *STy; @@ -275,7 +273,6 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { && "Expected RecordDecl in RecordTypesToResolve"); RecordTypesToResolve.erase(OpaqueI); - RO.clear(); } else if (TD->getKind() == Decl::Union) { const RecordDecl *RD = cast(TD); // Just use the largest element of the union, breaking ties with the @@ -291,7 +288,6 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { RecordLayoutInfo *RLI = new RecordLayoutInfo(RO.getLLVMType()); ResultType = RLI->getLLVMType(); RecordLayouts[ResultType] = RLI; - RO.clear(); } else { std::vector Fields; ResultType = llvm::StructType::get(Fields); @@ -445,8 +441,3 @@ void RecordOrganizer::layoutUnionFields() { STy = llvm::StructType::get(Fields); } -/// Clear private data so that this object can be reused. -void RecordOrganizer::clear() { - STy = NULL; - FieldDecls.clear(); -}