summaryrefslogtreecommitdiff
path: root/include/llvm/Argument.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-12-31 18:08:59 +0000
committerDuncan Sands <baldrick@free.fr>2008-12-31 18:08:59 +0000
commit17da06ffbd1f7269b6b9037f883a3d8a5c985f62 (patch)
tree0e33d3417585a9e2401d155da5f75a4aba0693b4 /include/llvm/Argument.h
parent3fa0de27278b73ce32a885a1b4bd29a4188266c6 (diff)
downloadllvm-17da06ffbd1f7269b6b9037f883a3d8a5c985f62.tar.gz
llvm-17da06ffbd1f7269b6b9037f883a3d8a5c985f62.tar.bz2
llvm-17da06ffbd1f7269b6b9037f883a3d8a5c985f62.tar.xz
Don't analyze arguments already marked 'nocapture'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61532 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 9faff549f2..9c06367798 100644
--- a/include/llvm/Argument.h
+++ b/include/llvm/Argument.h
@@ -56,6 +56,10 @@ public:
/// it in its containing function.
bool hasNoAliasAttr() const;
+ /// hasNoCaptureAttr - Return true if this argument has the nocapture
+ /// attribute on it in its containing function.
+ bool hasNoCaptureAttr() const;
+
/// hasSRetAttr - Return true if this argument has the sret attribute on it in
/// its containing function.
bool hasStructRetAttr() const;