From 1c72ca83daad66f2858e6b1a37330e808e5d5dc2 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 3 Oct 2012 21:19:35 +0000 Subject: [PATCH] Add function to return return attributes. llvm-svn: 165164 --- include/llvm/Function.h | 6 ++++++ 1 file changed, 6 insertions(+) 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);