diff options
author | Duncan Sands <baldrick@free.fr> | 2007-11-28 17:07:01 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-11-28 17:07:01 +0000 |
commit | afa3b6da11bc05281bcf09e45de9e037e0ee5011 (patch) | |
tree | bad8f7480a6ea8ab2cbce2ad3427e8173247f68e /lib/VMCore/Function.cpp | |
parent | 1e7b1bbd9c939ce1581862a6e0f8961279ea5992 (diff) |
Add some convenience methods for querying attributes, and
use them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44403 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 023cb556f4..92853e30f9 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -13,7 +13,6 @@ #include "llvm/Module.h" #include "llvm/DerivedTypes.h" -#include "llvm/ParameterAttributes.h" #include "llvm/IntrinsicInst.h" #include "llvm/CodeGen/ValueTypes.h" #include "llvm/Support/LeakDetector.h" @@ -287,12 +286,6 @@ void Function::setParamAttrs(const ParamAttrsList *attrs) { ParamAttrs = attrs; } -bool Function::isStructReturn() const { - if (ParamAttrs) - return ParamAttrs->paramHasAttr(1, ParamAttr::StructRet); - return false; -} - const FunctionType *Function::getFunctionType() const { return cast<FunctionType>(getType()->getElementType()); } |