aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-17 03:03:36 +0000
committerChris Lattner <sabre@nondot.org>2004-02-17 03:03:36 +0000
commitfcdb2c2a7f42b6a28678636585c5dd0bb0cffc7b (patch)
tree72c35968e79c6656cde544cce185314db8cf4489 /include/llvm/Type.h
parent3e3bcbd222dace4b725b39e47d326ca767c8c5d8 (diff)
Add two missing pieces from last checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index f156b2fd11..960af949b1 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -93,7 +93,7 @@ private:
const Type *getForwardedTypeInternal() const;
protected:
/// ctor is protected, so only subclasses can create Type objects...
- Type(PrimitiveID id);
+ Type(const std::string &Name, PrimitiveID id);
virtual ~Type() {}
/// setName - Associate the name with this type in the symbol table, but don't
@@ -109,6 +109,8 @@ protected:
///
bool isTypeAbstract();
+ unsigned getRefCount() const { return RefCount; }
+
/// ForwardType - This field is used to implement the union find scheme for
/// abstract types. When types are refined to other types, this field is set
/// to the more refined type. Only abstract types can be forwarded.