[cfe-commits] r43363 - /cfe/trunk/CodeGen/CodeGenTypes.h

Devang Patel dpatel at apple.com
Thu Oct 25 14:40:12 PDT 2007


Author: dpatel
Date: Thu Oct 25 16:40:12 2007
New Revision: 43363

URL: http://llvm.org/viewvc/llvm-project?rev=43363&view=rev
Log:
Document ConvertNewType() method and make it a private method.

Modified:
    cfe/trunk/CodeGen/CodeGenTypes.h

Modified: cfe/trunk/CodeGen/CodeGenTypes.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CodeGenTypes.h?rev=43363&r1=43362&r2=43363&view=diff

==============================================================================
--- cfe/trunk/CodeGen/CodeGenTypes.h (original)
+++ cfe/trunk/CodeGen/CodeGenTypes.h Thu Oct 25 16:40:12 2007
@@ -84,13 +84,20 @@
   /// used instead of llvm::Type because it allows us to bypass potential 
   /// dangling type pointers due to type refinement on llvm side.
   llvm::DenseMap<Type *, llvm::PATypeHolder *> TypeHolderMap;
+
+  /// ConvertNewType - Convert type T into a llvm::Type. Do not use this
+  /// method directly because it does not do any type caching. This method
+  /// is available only for ConvertType(). CovertType() is preferred
+  /// interface to convert type T into a llvm::Type.
+  const llvm::Type *ConvertNewType(QualType T);
 public:
   CodeGenTypes(ASTContext &Ctx, llvm::Module &M);
   ~CodeGenTypes();
   
   TargetInfo &getTarget() const { return Target; }
-  
-  const llvm::Type *ConvertNewType(QualType T);
+
+  /// ConvertType - Convert type T into a llvm::Type. Maintain and use
+  /// type cache through TypeHOlderMap.
   const llvm::Type *ConvertType(QualType T);
   void DecodeArgumentTypes(const FunctionTypeProto &FTP, 
                            std::vector<const llvm::Type*> &ArgTys);





More information about the cfe-commits mailing list