diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-02-25 09:53:29 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-02-25 09:53:29 +0000 |
commit | 67e541e1c80252425487b270d29732f2ba1166b5 (patch) | |
tree | 603320649e53b077371275e81d935b009b064bb1 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 01143f9a517ff0be74594286601f2d4a2a514c36 (diff) | |
download | llvm-67e541e1c80252425487b270d29732f2ba1166b5.zip llvm-67e541e1c80252425487b270d29732f2ba1166b5.tar.gz llvm-67e541e1c80252425487b270d29732f2ba1166b5.tar.bz2 |
Attr: Remove ForceInline
The __forceinline keyword's semantics are now recast as AlwaysInline and
the kw___forceinline token has its language mode set for KEYMS.
This preserves the semantics of the previous implementation but with
less duplication of code.
llvm-svn: 202131
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 409d114..e81b1bc 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -527,8 +527,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, Fn->addFnAttr(llvm::Attribute::InlineHint); break; } - } else if (!FD->hasAttr<AlwaysInlineAttr>() && - !FD->hasAttr<ForceInlineAttr>()) + } else if (!FD->hasAttr<AlwaysInlineAttr>()) Fn->addFnAttr(llvm::Attribute::NoInline); } |