From: Bill Wendling Date: Wed, 3 Oct 2012 21:19:35 +0000 (+0000) Subject: Add function to return return attributes. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ec7559db6d4d7e8f3cbeea8b7f2174318b3e8918;p=oota-llvm.git Add function to return return attributes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165164 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Function.h b/include/llvm/Function.h index fa6d0d3f5b2..752fe0bbfcb 100644 --- a/include/llvm/Function.h +++ b/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);