X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FArgument.h;h=71c001fbe18d7a04f8e07c546113f0df6dcb41b3;hb=7293ac12811c8a43023830380e70c0fda941f8ec;hp=9c0636779849899fe6389c07c8e1b086087e09ee;hpb=17da06ffbd1f7269b6b9037f883a3d8a5c985f62;p=oota-llvm.git diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h index 9c063677984..71c001fbe18 100644 --- a/include/llvm/Argument.h +++ b/include/llvm/Argument.h @@ -17,6 +17,7 @@ #include "llvm/Value.h" #include "llvm/Attributes.h" #include "llvm/ADT/ilist_node.h" +#include "llvm/ADT/Twine.h" namespace llvm { @@ -38,8 +39,7 @@ public: /// Argument ctor - If Function argument is specified, this argument is /// inserted at the end of the argument list for the function. /// - explicit Argument(const Type *Ty, const std::string &Name = "", - Function *F = 0); + explicit Argument(const Type *Ty, const Twine &Name = "", Function *F = 0); inline const Function *getParent() const { return Parent; } inline Function *getParent() { return Parent; } @@ -52,6 +52,10 @@ public: /// in its containing function. bool hasByValAttr() const; + /// hasNestAttr - Return true if this argument has the nest attribute on + /// it in its containing function. + bool hasNestAttr() const; + /// hasNoAliasAttr - Return true if this argument has the noalias attribute on /// it in its containing function. bool hasNoAliasAttr() const;