diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DerivedTypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index 3ea2a6c..5334140 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -154,6 +154,10 @@ public: const std::vector<const Type*> &Params, ///< The types of the parameters bool isVarArg ///< Whether this is a variable argument length function ); + + /// isValidReturnType - Return true if the specified type is valid as a return + /// type. + static bool isValidReturnType(const Type *RetTy); inline bool isVarArg() const { return isVarArgs; } inline const Type *getReturnType() const { return ContainedTys[0]; } |