diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-07 07:40:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-07 07:40:32 +0000 |
commit | fe59d36c4510b9b3df6deab2fe269ef19db4d193 (patch) | |
tree | c8e5829d78fbae6e902b341836b9341ada9fc6cd /lib/VMCore/Function.cpp | |
parent | 60766f7d4180cce859f58a49ecd6066dc9b40b4f (diff) |
Add convenience method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index a35a55b4bb..340bb1b4d1 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -142,6 +142,10 @@ const FunctionType *Function::getFunctionType() const { return cast<FunctionType>(getType()->getElementType()); } +bool Function::isVarArg() const { + return getFunctionType()->isVarArg(); +} + const Type *Function::getReturnType() const { return getFunctionType()->getReturnType(); } |