summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-02-25 09:53:29 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-02-25 09:53:29 +0000
commitde3be0d8caa7438422a0f08230d0855a73f046d9 (patch)
treefa4acf6b4b95f523636fcbc521db470d99d37eaa /lib/CodeGen/CodeGenFunction.cpp
parent037267532fc024259eab0c91fd58c3c2e8985ee4 (diff)
downloadclang-de3be0d8caa7438422a0f08230d0855a73f046d9.tar.gz
clang-de3be0d8caa7438422a0f08230d0855a73f046d9.tar.bz2
clang-de3be0d8caa7438422a0f08230d0855a73f046d9.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 409d1141b8..e81b1bccb1 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/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);
}