summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-27 21:11:48 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-27 21:11:48 +0000
commit583dcafce43f5249c808af1e65cb321489549b0b (patch)
tree2654ef8fe4495d6c5136e14dcf67afe2d1fe2df1 /clang/lib/CodeGen/CodeGenModule.cpp
parente4801f7844bbdac6345870a2dbb8d682398f6e05 (diff)
downloadbcm5719-llvm-583dcafce43f5249c808af1e65cb321489549b0b.tar.gz
bcm5719-llvm-583dcafce43f5249c808af1e65cb321489549b0b.zip
Introduce FunctionDecl::isInlined() to tell whether a function should
be inlined. llvm-svn: 85307
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index dd31663983b..a40701851e3 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -262,7 +262,7 @@ GetLinkageForFunction(ASTContext &Context, const FunctionDecl *FD,
if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) {
// C++ member functions defined inside the class are always inline.
- if (MD->isInlineSpecified() || !MD->isOutOfLine())
+ if (MD->isInlined())
return CodeGenModule::GVA_CXXInline;
return External;
@@ -272,7 +272,7 @@ GetLinkageForFunction(ASTContext &Context, const FunctionDecl *FD,
if (FD->getStorageClass() == FunctionDecl::Static)
return CodeGenModule::GVA_Internal;
- if (!FD->isInlineSpecified())
+ if (!FD->isInlined())
return External;
if (!Features.CPlusPlus || FD->hasAttr<GNUInlineAttr>()) {
OpenPOWER on IntegriCloud