X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FIR%2FCallSite.h;h=f7bfb47a5b4446edbd495b979f6350cf40a03df5;hp=f4b8a8a5a1c93b33edf22359c8de96ed577c5ea4;hb=db61103ea811b2fc0443e6438da3067a19ba1793;hpb=6ea7b5b53b7bd4e72b540992b8fa5bd183e70250 diff --git a/include/llvm/IR/CallSite.h b/include/llvm/IR/CallSite.h index f4b8a8a5a1c..f7bfb47a5b4 100644 --- a/include/llvm/IR/CallSite.h +++ b/include/llvm/IR/CallSite.h @@ -310,6 +310,11 @@ public: CALLSITE_DELEGATE_GETTER(hasFnAttr(A)); } + /// \brief Return true if this function has the given attribute. + bool hasFnAttr(StringRef A) const { + CALLSITE_DELEGATE_GETTER(hasFnAttr(A)); + } + /// \brief Return true if the call or the callee has the given attribute. bool paramHasAttr(unsigned i, Attribute::AttrKind A) const { CALLSITE_DELEGATE_GETTER(paramHasAttr(i, A));