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)
llvm-svn: 165164

llvm/include/llvm/Function.h

index fa6d0d3..752fe0b 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);