Add a predicate to Argument to check for the StructRet attribute.
[oota-llvm.git] / include / llvm / Argument.h
index a9d85f21d091fdfb525080f12ecc2501b7f28987..23d1a083482499ccbb064abc3778282e94ac4260 100644 (file)
@@ -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);