summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-23 05:36:34 +0000
committerChris Lattner <sabre@nondot.org>2008-04-23 05:36:34 +0000
commitd52b62ae05f75032cdc2077a320d0a4934b2b27f (patch)
tree0200818d46df5105c863dbd65b2099d7b99a32fe /include
parent69e6317083fd15096845c7c2602854d4d769717f (diff)
downloadllvm-d52b62ae05f75032cdc2077a320d0a4934b2b27f.tar.gz
llvm-d52b62ae05f75032cdc2077a320d0a4934b2b27f.tar.bz2
llvm-d52b62ae05f75032cdc2077a320d0a4934b2b27f.tar.xz
Enforce that multiple return values have to have at least one result.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/DerivedTypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index 3ea2a6cb94..533414049f 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]; }