Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.

llvm-svn: 165596
This commit is contained in:
Bill Wendling
2012-10-10 03:13:20 +00:00
parent f319e9905f
commit 73e465e148
6 changed files with 22 additions and 21 deletions

View File

@@ -953,7 +953,7 @@ void CodeGenFunction::EmitDestructorBody(FunctionArgList &Args) {
// -fapple-kext must inline any call to this dtor into
// the caller's body.
if (getContext().getLangOpts().AppleKext)
CurFn->addFnAttr(llvm::Attribute::AlwaysInline);
CurFn->addFnAttr(llvm::Attributes::AlwaysInline);
break;
}