From 785afdf3a48b3f38a0fd30edefc533ca1bf725f9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 30 Jan 2013 23:40:31 +0000 Subject: Remove addRetAttributes and addFnAttributes, which aren't useful abstractions. llvm-svn: 173992 --- llvm/lib/IR/Core.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/IR/Core.cpp') diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp index 1e3258f6aa1..aaf661f0825 100644 --- a/llvm/lib/IR/Core.cpp +++ b/llvm/lib/IR/Core.cpp @@ -1383,9 +1383,9 @@ void LLVMAddFunctionAttr(LLVMValueRef Fn, LLVMAttribute PA) { const AttributeSet PAL = Func->getAttributes(); AttrBuilder B(PA); const AttributeSet PALnew = - PAL.addFnAttributes(Func->getContext(), - AttributeSet::get(Func->getContext(), - AttributeSet::FunctionIndex, B)); + PAL.addAttributes(Func->getContext(), AttributeSet::FunctionIndex, + AttributeSet::get(Func->getContext(), + AttributeSet::FunctionIndex, B)); Func->setAttributes(PALnew); } -- cgit v1.2.3