mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
s/AttrListPtr/AttributeSet/g to better label what this class is going to be in the near future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -331,23 +331,23 @@ CallInst::CallInst(const CallInst &CI)
|
||||
}
|
||||
|
||||
void CallInst::addAttribute(unsigned i, Attributes attr) {
|
||||
AttrListPtr PAL = getAttributes();
|
||||
AttributeSet PAL = getAttributes();
|
||||
PAL = PAL.addAttr(getContext(), i, attr);
|
||||
setAttributes(PAL);
|
||||
}
|
||||
|
||||
void CallInst::removeAttribute(unsigned i, Attributes attr) {
|
||||
AttrListPtr PAL = getAttributes();
|
||||
AttributeSet PAL = getAttributes();
|
||||
PAL = PAL.removeAttr(getContext(), i, attr);
|
||||
setAttributes(PAL);
|
||||
}
|
||||
|
||||
bool CallInst::hasFnAttr(Attributes::AttrVal A) const {
|
||||
if (AttributeList.getParamAttributes(AttrListPtr::FunctionIndex)
|
||||
if (AttributeList.getParamAttributes(AttributeSet::FunctionIndex)
|
||||
.hasAttribute(A))
|
||||
return true;
|
||||
if (const Function *F = getCalledFunction())
|
||||
return F->getParamAttributes(AttrListPtr::FunctionIndex).hasAttribute(A);
|
||||
return F->getParamAttributes(AttributeSet::FunctionIndex).hasAttribute(A);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -572,11 +572,11 @@ void InvokeInst::setSuccessorV(unsigned idx, BasicBlock *B) {
|
||||
}
|
||||
|
||||
bool InvokeInst::hasFnAttr(Attributes::AttrVal A) const {
|
||||
if (AttributeList.getParamAttributes(AttrListPtr::FunctionIndex).
|
||||
if (AttributeList.getParamAttributes(AttributeSet::FunctionIndex).
|
||||
hasAttribute(A))
|
||||
return true;
|
||||
if (const Function *F = getCalledFunction())
|
||||
return F->getParamAttributes(AttrListPtr::FunctionIndex).hasAttribute(A);
|
||||
return F->getParamAttributes(AttributeSet::FunctionIndex).hasAttribute(A);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -589,13 +589,13 @@ bool InvokeInst::paramHasAttr(unsigned i, Attributes::AttrVal A) const {
|
||||
}
|
||||
|
||||
void InvokeInst::addAttribute(unsigned i, Attributes attr) {
|
||||
AttrListPtr PAL = getAttributes();
|
||||
AttributeSet PAL = getAttributes();
|
||||
PAL = PAL.addAttr(getContext(), i, attr);
|
||||
setAttributes(PAL);
|
||||
}
|
||||
|
||||
void InvokeInst::removeAttribute(unsigned i, Attributes attr) {
|
||||
AttrListPtr PAL = getAttributes();
|
||||
AttributeSet PAL = getAttributes();
|
||||
PAL = PAL.removeAttr(getContext(), i, attr);
|
||||
setAttributes(PAL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user