Add function to return return attributes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165164 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-10-03 21:19:35 +00:00
parent 4c230b3338
commit ec7559db6d

View File

@ -195,6 +195,12 @@ public:
void setGC(const char *Str); void setGC(const char *Str);
void clearGC(); void clearGC();
/// getRetAttributes - Return the return attributes for querying.
Attributes getRetAttributes() const {
return AttributeList.getRetAttributes();
}
/// getParamAttributes - Return the parameter attributes for querying. /// getParamAttributes - Return the parameter attributes for querying.
Attributes getParamAttributes(unsigned Idx) const { Attributes getParamAttributes(unsigned Idx) const {
return AttributeList.getParamAttributes(Idx); return AttributeList.getParamAttributes(Idx);