diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-06-25 16:16:58 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-06-25 16:16:58 +0000 |
commit | 986da6c3fdce52082288094f592e60ba165ae71c (patch) | |
tree | 9e667d787d58fee46876470214271a8e2aab7b7c /include/llvm/Support/CallSite.h | |
parent | b935cd15142491bdee9baff00db8d63c18d402db (diff) | |
download | llvm-986da6c3fdce52082288094f592e60ba165ae71c.tar.gz llvm-986da6c3fdce52082288094f592e60ba165ae71c.tar.bz2 llvm-986da6c3fdce52082288094f592e60ba165ae71c.tar.xz |
add CallSite/CallInst/InvokeInst::hasFnAttr()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159144 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CallSite.h')
-rw-r--r-- | include/llvm/Support/CallSite.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 20634ede76..c23bb6a97d 100644 --- a/include/llvm/Support/CallSite.h +++ b/include/llvm/Support/CallSite.h @@ -184,6 +184,11 @@ public: CALLSITE_DELEGATE_SETTER(setAttributes(PAL)); } + /// \brief Return true if this function has the given attribute. + bool hasFnAttr(Attributes N) const { + CALLSITE_DELEGATE_GETTER(hasFnAttr(N)); + } + /// paramHasAttr - whether the call or the callee has the given attribute. bool paramHasAttr(uint16_t i, Attributes attr) const { CALLSITE_DELEGATE_GETTER(paramHasAttr(i, attr)); |