diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-30 12:45:13 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-30 12:45:13 +0000 |
commit | 94dcaf8e2b4fb4d69c334dd9ece3431536ae2a3d (patch) | |
tree | 991904a44655868e39a348ad3e712f88af9cfa1b /llvm/lib/VMCore/Instructions.cpp | |
parent | 5e85be4326a46a32159494c65d3fa177a0f05588 (diff) | |
download | bcm5719-llvm-94dcaf8e2b4fb4d69c334dd9ece3431536ae2a3d.tar.gz bcm5719-llvm-94dcaf8e2b4fb4d69c334dd9ece3431536ae2a3d.zip |
Remove Function::getParamAttributes and use the AttributeSet accessor methods instead.
llvm-svn: 171255
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index bb659fc69e9..23db33646e5 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -348,7 +348,7 @@ bool CallInst::hasFnAttr(Attribute::AttrKind A) const { .hasAttribute(A)) return true; if (const Function *F = getCalledFunction()) - return F->getParamAttributes(AttributeSet::FunctionIndex).hasAttribute(A); + return F->getAttributes().hasAttribute(AttributeSet::FunctionIndex, A); return false; } @@ -356,7 +356,7 @@ bool CallInst::paramHasAttr(unsigned i, Attribute::AttrKind A) const { if (AttributeList.getParamAttributes(i).hasAttribute(A)) return true; if (const Function *F = getCalledFunction()) - return F->getParamAttributes(i).hasAttribute(A); + return F->getAttributes().hasAttribute(i, A); return false; } @@ -577,7 +577,7 @@ bool InvokeInst::hasFnAttr(Attribute::AttrKind A) const { hasAttribute(A)) return true; if (const Function *F = getCalledFunction()) - return F->getParamAttributes(AttributeSet::FunctionIndex).hasAttribute(A); + return F->getAttributes().hasAttribute(AttributeSet::FunctionIndex, A); return false; } @@ -585,7 +585,7 @@ bool InvokeInst::paramHasAttr(unsigned i, Attribute::AttrKind A) const { if (AttributeList.getParamAttributes(i).hasAttribute(A)) return true; if (const Function *F = getCalledFunction()) - return F->getParamAttributes(i).hasAttribute(A); + return F->getAttributes().hasAttribute(i, A); return false; } |