summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-03 21:19:35 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-03 21:19:35 +0000
commitec7559db6d4d7e8f3cbeea8b7f2174318b3e8918 (patch)
treeb2468dd07a478c6747b5cb0245cf9f41430be6ff /include
parent4c230b3338bc527fa62de1ea574019261316fcfb (diff)
downloadllvm-ec7559db6d4d7e8f3cbeea8b7f2174318b3e8918.tar.gz
llvm-ec7559db6d4d7e8f3cbeea8b7f2174318b3e8918.tar.bz2
llvm-ec7559db6d4d7e8f3cbeea8b7f2174318b3e8918.tar.xz
Add function to return return attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Function.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index fa6d0d3f5b..752fe0bbfc 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);