Add function to return return attributes.
authorBill Wendling <isanbard@gmail.com>
Wed, 3 Oct 2012 21:19:35 +0000 (21:19 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 3 Oct 2012 21:19:35 +0000 (21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165164 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Function.h

index fa6d0d3f5b2d3231f2c6c4afc2ad4f891e32b713..752fe0bbfcb9512af484f0f825d3a24c96e37aa9 100644 (file)
@@ -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);