summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-27 21:01:01 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-27 21:01:01 +0000
commit35b5753e1797f919f61066bfabe3b0b35c8e91c1 (patch)
tree5310c7ea560a5f16b1e8dcbfed5141184966af5d /clang/lib/CodeGen/CodeGenModule.cpp
parentafca3b4a5c85b000ce7fe5ebf8518bbb63edb91b (diff)
downloadbcm5719-llvm-35b5753e1797f919f61066bfabe3b0b35c8e91c1.tar.gz
bcm5719-llvm-35b5753e1797f919f61066bfabe3b0b35c8e91c1.zip
Rename FunctionDecl::isInline/setInline to
FunctionDecl::isInlineSpecified/setInlineSpecified. llvm-svn: 85305
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 1cee3bb501f..dd31663983b 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->isInline() || !MD->isOutOfLine())
+ if (MD->isInlineSpecified() || !MD->isOutOfLine())
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->isInline())
+ if (!FD->isInlineSpecified())
return External;
if (!Features.CPlusPlus || FD->hasAttr<GNUInlineAttr>()) {
OpenPOWER on IntegriCloud