summaryrefslogtreecommitdiff
path: root/include/llvm/Argument.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-02-17 23:22:28 +0000
committerOwen Anderson <resistor@mac.com>2008-02-17 23:22:28 +0000
commit7d54254c9cc6e5a3be3a7d9d22241c0ae8a7fa03 (patch)
tree53b669d1179755efa73b8b93f17cd6b07bfaedad /include/llvm/Argument.h
parent9b636cb3385376faa7f33a943cac7d40bff1531a (diff)
downloadllvm-7d54254c9cc6e5a3be3a7d9d22241c0ae8a7fa03.tar.gz
llvm-7d54254c9cc6e5a3be3a7d9d22241c0ae8a7fa03.tar.bz2
llvm-7d54254c9cc6e5a3be3a7d9d22241c0ae8a7fa03.tar.xz
Add a predicate to Argument to check for the StructRet attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Argument.h')
-rw-r--r--include/llvm/Argument.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h
index a9d85f21d0..23d1a08348 100644
--- a/include/llvm/Argument.h
+++ b/include/llvm/Argument.h
@@ -57,6 +57,10 @@ public:
/// it in its containing function.
bool hasNoAliasAttr() const;
+ /// hasSRetAttr - Return true if this argument has the sret attribute on it in
+ /// its containing function.
+ bool hasStructRetAttr() const;
+
virtual void print(std::ostream &OS) const;
void print(std::ostream *OS) const {
if (OS) print(*OS);