summaryrefslogtreecommitdiff
path: root/include/llvm/Argument.h
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2008-04-28 17:37:06 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2008-04-28 17:37:06 +0000
commite2435da8abe5ca62c7f08f29c242b6b98e0ec7af (patch)
tree66e5cc5aa713285dde8e0d76592f695810cd847a /include/llvm/Argument.h
parent1f13c686df75ddbbe15b208606ece4846d7479a8 (diff)
downloadllvm-e2435da8abe5ca62c7f08f29c242b6b98e0ec7af.tar.gz
llvm-e2435da8abe5ca62c7f08f29c242b6b98e0ec7af.tar.bz2
llvm-e2435da8abe5ca62c7f08f29c242b6b98e0ec7af.tar.xz
Expose parameter attributes via C bindings.
Patch by Anders Johnsen! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Argument.h')
-rw-r--r--include/llvm/Argument.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h
index 23d1a08348..d203a935bd 100644
--- a/include/llvm/Argument.h
+++ b/include/llvm/Argument.h
@@ -15,6 +15,7 @@
#define LLVM_ARGUMENT_H
#include "llvm/Value.h"
+#include "llvm/ParameterAttributes.h"
namespace llvm {
@@ -60,7 +61,13 @@ public:
/// hasSRetAttr - Return true if this argument has the sret attribute on it in
/// its containing function.
bool hasStructRetAttr() const;
+
+ /// addAttr - Add a ParamAttr to an argument
+ void addAttr(ParameterAttributes);
+ /// removeAttr - Remove a ParamAttr from an argument
+ void removeAttr(ParameterAttributes);
+
virtual void print(std::ostream &OS) const;
void print(std::ostream *OS) const {
if (OS) print(*OS);