summaryrefslogtreecommitdiffstats
path: root/clang/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
commitcd1d086b5afdb7f5d93cc3e6824abfc9ba9e20b7 (patch)
tree51226756ebd80a2c59864b816e19fd0792d99024 /clang/AST/Type.cpp
parentc996b176e8dcc9a578f2efc6817945da4ec27db0 (diff)
downloadbcm5719-llvm-cd1d086b5afdb7f5d93cc3e6824abfc9ba9e20b7.tar.gz
bcm5719-llvm-cd1d086b5afdb7f5d93cc3e6824abfc9ba9e20b7.zip
rename isReferenceType to follow the new scheme.
llvm-svn: 40640
Diffstat (limited to 'clang/AST/Type.cpp')
-rw-r--r--clang/AST/Type.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/AST/Type.cpp b/clang/AST/Type.cpp
index ae04c4effdc..1c61c681cee 100644
--- a/clang/AST/Type.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud