aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-08-05 02:49:48 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-08-05 02:49:48 +0000
commit1357869bc5983cdfbc986db1f3d18265bb34cb0e (patch)
treed5241a4058c97650ff4053d69296f8a997698c94 /lib/AST/Type.cpp
parent7f584bbe9c2de8455bfb572d4ab571628c6c024e (diff)
Get rid of isObjectType; when C++ says "object type", it generally
just means "not a function type", not "not a function type or void". This changes behavior slightly, but generally in a way which accepts more code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r--lib/AST/Type.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index 8ae138a2ac..31af6fb661 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -166,13 +166,6 @@ bool Type::isVoidType() const {
return false;
}
-bool Type::isObjectType() const {
- if (isa<FunctionType>(CanonicalType) || isa<ReferenceType>(CanonicalType) ||
- isVoidType())
- return false;
- return true;
-}
-
bool Type::isDerivedType() const {
switch (CanonicalType->getTypeClass()) {
case Pointer: