Added ImmutableMap constructor that accepts a const TreeTy*.
[oota-llvm.git] / include / llvm / Argument.h
index a9d85f21d091fdfb525080f12ecc2501b7f28987..d203a935bd1bdfdd7cae4171b27a5988106d037a 100644 (file)
@@ -15,6 +15,7 @@
 #define LLVM_ARGUMENT_H
 
 #include "llvm/Value.h"
+#include "llvm/ParameterAttributes.h"
 
 namespace llvm {
 
@@ -57,6 +58,16 @@ 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;
+
+  /// 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);