From 5208d1ab4ae3ea453f4363e4d4582e2df09b7927 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 28 Nov 2007 17:07:01 +0000 Subject: Add some convenience methods for querying attributes, and use them. llvm-svn: 44403 --- llvm/lib/VMCore/Function.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/lib/VMCore/Function.cpp') diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index 023cb556f44..92853e30f9b 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/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(getType()->getElementType()); } -- cgit v1.2.3