From 583dcafce43f5249c808af1e65cb321489549b0b Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 27 Oct 2009 21:11:48 +0000 Subject: Introduce FunctionDecl::isInlined() to tell whether a function should be inlined. llvm-svn: 85307 --- clang/lib/CodeGen/CodeGenModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index dd31663983bb..a40701851e3d 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(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()) { -- cgit v1.2.3