diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-19 07:18:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-19 07:18:57 +0000 |
commit | 3d7b0b8ac7eef54764f80af62d53d661c9ba2951 (patch) | |
tree | b729cff563ce07cd73f566039bd84fe5efc4a0b6 /llvm/lib/VMCore/Core.cpp | |
parent | 7967fc14b912d9e355570f1f9db8ccb7d7518d94 (diff) | |
download | bcm5719-llvm-3d7b0b8ac7eef54764f80af62d53d661c9ba2951.tar.gz bcm5719-llvm-3d7b0b8ac7eef54764f80af62d53d661c9ba2951.zip |
Rename the 'Attributes' class to 'Attribute'. It's going to represent a single attribute in the future.
llvm-svn: 170502
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r-- | llvm/lib/VMCore/Core.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 0fb37cb0b4f..71098bf7f8c 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -1384,7 +1384,7 @@ void LLVMAddFunctionAttr(LLVMValueRef Fn, LLVMAttribute PA) { AttrBuilder B(PA); const AttributeSet PALnew = PAL.addAttr(Func->getContext(), AttributeSet::FunctionIndex, - Attributes::get(Func->getContext(), B)); + Attribute::get(Func->getContext(), B)); Func->setAttributes(PALnew); } @@ -1394,14 +1394,14 @@ void LLVMRemoveFunctionAttr(LLVMValueRef Fn, LLVMAttribute PA) { AttrBuilder B(PA); const AttributeSet PALnew = PAL.removeAttr(Func->getContext(), AttributeSet::FunctionIndex, - Attributes::get(Func->getContext(), B)); + Attribute::get(Func->getContext(), B)); Func->setAttributes(PALnew); } LLVMAttribute LLVMGetFunctionAttr(LLVMValueRef Fn) { Function *Func = unwrap<Function>(Fn); const AttributeSet PAL = Func->getAttributes(); - Attributes attr = PAL.getFnAttributes(); + Attribute attr = PAL.getFnAttributes(); return (LLVMAttribute)attr.Raw(); } @@ -1466,18 +1466,18 @@ LLVMValueRef LLVMGetPreviousParam(LLVMValueRef Arg) { void LLVMAddAttribute(LLVMValueRef Arg, LLVMAttribute PA) { Argument *A = unwrap<Argument>(Arg); AttrBuilder B(PA); - A->addAttr(Attributes::get(A->getContext(), B)); + A->addAttr(Attribute::get(A->getContext(), B)); } void LLVMRemoveAttribute(LLVMValueRef Arg, LLVMAttribute PA) { Argument *A = unwrap<Argument>(Arg); AttrBuilder B(PA); - A->removeAttr(Attributes::get(A->getContext(), B)); + A->removeAttr(Attribute::get(A->getContext(), B)); } LLVMAttribute LLVMGetAttribute(LLVMValueRef Arg) { Argument *A = unwrap<Argument>(Arg); - Attributes attr = A->getParent()->getAttributes().getParamAttributes( + Attribute attr = A->getParent()->getAttributes().getParamAttributes( A->getArgNo()+1); return (LLVMAttribute)attr.Raw(); } @@ -1486,7 +1486,7 @@ LLVMAttribute LLVMGetAttribute(LLVMValueRef Arg) { void LLVMSetParamAlignment(LLVMValueRef Arg, unsigned align) { AttrBuilder B; B.addAlignmentAttr(align); - unwrap<Argument>(Arg)->addAttr(Attributes:: + unwrap<Argument>(Arg)->addAttr(Attribute:: get(unwrap<Argument>(Arg)->getContext(), B)); } @@ -1679,7 +1679,7 @@ void LLVMAddInstrAttribute(LLVMValueRef Instr, unsigned index, AttrBuilder B(PA); Call.setAttributes( Call.getAttributes().addAttr(Call->getContext(), index, - Attributes::get(Call->getContext(), B))); + Attribute::get(Call->getContext(), B))); } void LLVMRemoveInstrAttribute(LLVMValueRef Instr, unsigned index, @@ -1688,7 +1688,7 @@ void LLVMRemoveInstrAttribute(LLVMValueRef Instr, unsigned index, AttrBuilder B(PA); Call.setAttributes( Call.getAttributes().removeAttr(Call->getContext(), index, - Attributes::get(Call->getContext(), B))); + Attribute::get(Call->getContext(), B))); } void LLVMSetInstrParamAlignment(LLVMValueRef Instr, unsigned index, @@ -1697,7 +1697,7 @@ void LLVMSetInstrParamAlignment(LLVMValueRef Instr, unsigned index, AttrBuilder B; B.addAlignmentAttr(align); Call.setAttributes(Call.getAttributes().addAttr(Call->getContext(), index, - Attributes::get(Call->getContext(), B))); + Attribute::get(Call->getContext(), B))); } /*--.. Operations on call instructions (only) ..............................--*/ |