aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-10-25 21:40:12 +0000
committerDevang Patel <dpatel@apple.com>2007-10-25 21:40:12 +0000
commit5825ac2950db54ea5ce8a4f3f87fae569eeefe65 (patch)
tree5d30f874a2bf871f7e7fedd33aece76a883e8520
parentf152b2ee874d24b04891bac380fa2e03bf02f34c (diff)
Document ConvertNewType() method and make it a private method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43363 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--CodeGen/CodeGenTypes.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/CodeGen/CodeGenTypes.h b/CodeGen/CodeGenTypes.h
index 7f2641146d..91f6a1b24e 100644
--- a/CodeGen/CodeGenTypes.h
+++ b/CodeGen/CodeGenTypes.h
@@ -84,13 +84,20 @@ class CodeGenTypes {
/// 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);