diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-07 23:16:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-07 23:16:57 +0000 |
commit | e94d843e43d1b87f843de276381eaf9b13b487dd (patch) | |
tree | 66ca31b77ba8a5a14c46678361c231166d9e4e7f /llvm/lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | 8ecd491e7560eb8c451220414ec849b180462105 (diff) | |
download | bcm5719-llvm-e94d843e43d1b87f843de276381eaf9b13b487dd.tar.gz bcm5719-llvm-e94d843e43d1b87f843de276381eaf9b13b487dd.zip |
s/AttrListPtr/AttributeSet/g to better label what this class is going to be in the near future.
llvm-svn: 169651
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp index 435f376c46b..685833da1a9 100644 --- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp @@ -215,13 +215,13 @@ bool FunctionAttrs::AddReadAttrs(const CallGraphSCC &SCC) { AttrBuilder B; B.addAttribute(Attributes::ReadOnly) .addAttribute(Attributes::ReadNone); - F->removeAttribute(AttrListPtr::FunctionIndex, + F->removeAttribute(AttributeSet::FunctionIndex, Attributes::get(F->getContext(), B)); // Add in the new attribute. B.clear(); B.addAttribute(ReadsMemory ? Attributes::ReadOnly : Attributes::ReadNone); - F->addAttribute(AttrListPtr::FunctionIndex, + F->addAttribute(AttributeSet::FunctionIndex, Attributes::get(F->getContext(), B)); if (ReadsMemory) |