[cfe-commits] r43591 - /cfe/trunk/CodeGen/CodeGenTypes.cpp

Devang Patel dpatel at apple.com
Wed Oct 31 17:11:37 PDT 2007


Author: dpatel
Date: Wed Oct 31 19:11:37 2007
New Revision: 43591

URL: http://llvm.org/viewvc/llvm-project?rev=43591&view=rev
Log:
Remove unnecessary method.

Modified:
    cfe/trunk/CodeGen/CodeGenTypes.cpp

Modified: cfe/trunk/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CodeGenTypes.cpp?rev=43591&r1=43590&r2=43591&view=diff

==============================================================================
--- cfe/trunk/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/CodeGen/CodeGenTypes.cpp Wed Oct 31 19:11:37 2007
@@ -62,8 +62,6 @@
       return STy;
     }
 
-    /// Clear private data so that this object can be reused.
-    void clear();
   private:
     CodeGenTypes &CGT;
     llvm::Type *STy;
@@ -275,7 +273,6 @@
               && "Expected RecordDecl in RecordTypesToResolve");
       RecordTypesToResolve.erase(OpaqueI);
 
-      RO.clear();
     } else if (TD->getKind() == Decl::Union) {
       const RecordDecl *RD = cast<const RecordDecl>(TD);
       // Just use the largest element of the union, breaking ties with the
@@ -291,7 +288,6 @@
         RecordLayoutInfo *RLI = new RecordLayoutInfo(RO.getLLVMType());
         ResultType = RLI->getLLVMType();
         RecordLayouts[ResultType] = RLI;
-        RO.clear();
       } else {       
         std::vector<const llvm::Type*> Fields;
         ResultType = llvm::StructType::get(Fields);
@@ -445,8 +441,3 @@
   STy = llvm::StructType::get(Fields);
 }
 
-/// Clear private data so that this object can be reused.
-void RecordOrganizer::clear() {
-  STy = NULL;
-  FieldDecls.clear();
-}





More information about the cfe-commits mailing list