aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-07 07:40:32 +0000
committerChris Lattner <sabre@nondot.org>2005-01-07 07:40:32 +0000
commitfe59d36c4510b9b3df6deab2fe269ef19db4d193 (patch)
treec8e5829d78fbae6e902b341836b9341ada9fc6cd /include/llvm/Function.h
parent60766f7d4180cce859f58a49ecd6066dc9b40b4f (diff)
downloadexternal_llvm-fe59d36c4510b9b3df6deab2fe269ef19db4d193.zip
external_llvm-fe59d36c4510b9b3df6deab2fe269ef19db4d193.tar.gz
external_llvm-fe59d36c4510b9b3df6deab2fe269ef19db4d193.tar.bz2
Add convenience method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index a540ee3..a4545a7 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -90,6 +90,10 @@ public:
const Type *getReturnType() const; // Return the type of the ret val
const FunctionType *getFunctionType() const; // Return the FunctionType for me
+ /// isVarArg - Return true if this function takes a variable number of
+ /// arguments.
+ bool isVarArg() const;
+
/// isExternal - Is the body of this function unknown? (The basic block list
/// is empty if so.) This is true for external functions, defined as forward
/// "declare"ations