diff options
| author | Manuel Jacob <me@manueljacob.de> | 2016-01-05 19:08:33 +0000 |
|---|---|---|
| committer | Manuel Jacob <me@manueljacob.de> | 2016-01-05 19:08:33 +0000 |
| commit | 0aa9f7fdadab5cfdf2097b980d6db8c802b0eba5 (patch) | |
| tree | ca7dc7f1dd1776cdac5489f94d9c00542d84c865 /llvm/lib | |
| parent | e8ddf9e9db2cb94aa617514e533fb5cd2502515d (diff) | |
| download | bcm5719-llvm-0aa9f7fdadab5cfdf2097b980d6db8c802b0eba5.tar.gz bcm5719-llvm-0aa9f7fdadab5cfdf2097b980d6db8c802b0eba5.zip | |
Add function for testing string attributes to InvokeInst and CallSite. NFC.
llvm-svn: 256856
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/Instructions.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 0d6d23bb45d..7c64ca7b727 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/lib/IR/Instructions.cpp @@ -609,20 +609,6 @@ void InvokeInst::setSuccessorV(unsigned idx, BasicBlock *B) { return setSuccessor(idx, B); } -bool InvokeInst::hasFnAttrImpl(Attribute::AttrKind A) const { - if (AttributeList.hasAttribute(AttributeSet::FunctionIndex, A)) - return true; - - // Operand bundles override attributes on the called function, but don't - // override attributes directly present on the invoke instruction. - if (isFnAttrDisallowedByOpBundle(A)) - return false; - - if (const Function *F = getCalledFunction()) - return F->getAttributes().hasAttribute(AttributeSet::FunctionIndex, A); - return false; -} - bool InvokeInst::paramHasAttr(unsigned i, Attribute::AttrKind A) const { assert(i < (getNumArgOperands() + 1) && "Param index out of bounds!"); |

