diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-15 20:35:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-15 20:35:56 +0000 |
commit | 702cc91aa1bd41540e8674921ae7ac89a4ff061f (patch) | |
tree | ee8a1af757a2e912b5286e98b5dcaf48c7b4861a /include/llvm/Function.h | |
parent | 874c0a6ec70edb80d76eafb86c6a35053e7acb48 (diff) |
Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index f36d5650b3..26b148d848 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -178,7 +178,7 @@ public: /// void addFnAttr(Attributes::AttrVal N) { // Function Attributes are stored at ~0 index - Attributes::Builder B; + AttrBuilder B; B.addAttribute(N); addAttribute(~0U, Attributes::get(getContext(), B)); } @@ -278,7 +278,7 @@ public: return getParamAttributes(n).hasAttribute(Attributes::NoAlias); } void setDoesNotAlias(unsigned n) { - Attributes::Builder B; + AttrBuilder B; B.addAttribute(Attributes::NoAlias); addAttribute(n, Attributes::get(getContext(), B)); } @@ -289,7 +289,7 @@ public: return getParamAttributes(n).hasAttribute(Attributes::NoCapture); } void setDoesNotCapture(unsigned n) { - Attributes::Builder B; + AttrBuilder B; B.addAttribute(Attributes::NoCapture); addAttribute(n, Attributes::get(getContext(), B)); } |