summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-22 19:29:18 +0000
committerChris Lattner <sabre@nondot.org>2009-03-22 19:29:18 +0000
commit377b9c84d01a954c9f39221e66b5f109b2a21662 (patch)
tree688a24bd8f5302a8af2190c340e82a574fc5d36f /clang
parentb6ff0f3a4de2882abc83931d4a78bb1533353cbd (diff)
downloadbcm5719-llvm-377b9c84d01a954c9f39221e66b5f109b2a21662.tar.gz
bcm5719-llvm-377b9c84d01a954c9f39221e66b5f109b2a21662.zip
add some missing type predicates.
llvm-svn: 67474
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/AST/Type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index 4451186934d..580f78c2972 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/include/clang/AST/Type.h
@@ -343,6 +343,8 @@ public:
// Type Predicates: Check to see if this type is structurally the specified
// type, ignoring typedefs and qualifiers.
bool isFunctionType() const;
+ bool isFunctionNoProtoType() const { return getAsFunctionNoProtoType() != 0; }
+ bool isFunctionProtoType() const { return getAsFunctionProtoType() != 0; }
bool isPointerType() const;
bool isBlockPointerType() const;
bool isReferenceType() const;
OpenPOWER on IntegriCloud