aboutsummaryrefslogtreecommitdiff
path: root/AST/Type.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-31 16:56:34 +0000
committerChris Lattner <sabre@nondot.org>2007-07-31 16:56:34 +0000
commita1d9fdea79ba7bbd71862b9f9f78f5f117331fc7 (patch)
treee5adb10eef2a4183d2c60ef3af2aa3a79afcd7aa /AST/Type.cpp
parentbefee48ff2a1dab236c5700f00ecca1cfdcd5837 (diff)
rename isReferenceType to follow the new scheme.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'AST/Type.cpp')
-rw-r--r--AST/Type.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/AST/Type.cpp b/AST/Type.cpp
index ae04c4effd..1c61c681ce 100644
--- a/AST/Type.cpp
+++ b/AST/Type.cpp
@@ -70,6 +70,7 @@ const FunctionType *Type::isFunctionType() const {
// FIXME: move inline
bool Type::isPointerType() const { return isa<PointerType>(CanonicalType); }
+bool Type::isReferenceType() const { return isa<ReferenceType>(CanonicalType); }
const PointerType *Type::getAsPointerType() const {
// If this is directly a pointer type, return it.
@@ -83,7 +84,7 @@ const PointerType *Type::getAsPointerType() const {
return 0;
}
-const ReferenceType *Type::isReferenceType() const {
+const ReferenceType *Type::getAsReferenceType() const {
// If this is directly a reference type, return it.
if (const ReferenceType *RTy = dyn_cast<ReferenceType>(this))
return RTy;