diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-01 16:18:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-01 16:18:37 +0000 |
commit | 9636a91649f168f41b477cba705287665e054f79 (patch) | |
tree | 5922b723abd6338e86c5c09ecb880f129cd85401 /include/llvm/Function.h | |
parent | 7295eb4ea3e3a81e697600cbca681674e4b35a20 (diff) | |
download | external_llvm-9636a91649f168f41b477cba705287665e054f79.tar.gz external_llvm-9636a91649f168f41b477cba705287665e054f79.tar.bz2 external_llvm-9636a91649f168f41b477cba705287665e054f79.zip |
Add support for new style casts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index a7075af0cc..f6c8aa214c 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -92,6 +92,11 @@ public: inline BasicBlock *back() { return BasicBlocks.back(); } + // Methods for support type inquiry through isa, cast, and dyn_cast: + static inline bool isa(const Method *T) { return true; } + static inline bool isa(const Value *V) { + return V->getValueType() == Value::MethodVal; + } // dropAllReferences() - This function causes all the subinstructions to "let // go" of all references that they are maintaining. This allows one to |