aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp4
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();
}