From: Bill Wendling Date: Wed, 3 Oct 2012 21:19:35 +0000 (+0000) Subject: Add function to return return attributes. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1ed4aa17d07b8d71b5a82505aa0a2d338505190;p=platform%2Fupstream%2Fllvm.git Add function to return return attributes. llvm-svn: 165164 --- diff --git a/llvm/include/llvm/Function.h b/llvm/include/llvm/Function.h index fa6d0d3..752fe0b 100644 --- a/llvm/include/llvm/Function.h +++ b/llvm/include/llvm/Function.h @@ -195,6 +195,12 @@ public: void setGC(const char *Str); void clearGC(); + + /// getRetAttributes - Return the return attributes for querying. + Attributes getRetAttributes() const { + return AttributeList.getRetAttributes(); + } + /// getParamAttributes - Return the parameter attributes for querying. Attributes getParamAttributes(unsigned Idx) const { return AttributeList.getParamAttributes(Idx);