aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r--lib/AST/Decl.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp
index 9feec9d82a..9b507cfc5e 100644
--- a/lib/AST/Decl.cpp
+++ b/lib/AST/Decl.cpp
@@ -1762,32 +1762,6 @@ bool FunctionDecl::isInlined() const {
return false;
}
-/// \brief For a function declaration in C or C++, determine whether this
-/// declaration causes the definition to be externally visible.
-///
-/// Determines whether this is the first non-inline redeclaration of an inline
-/// function in a language where "inline" does not normally require an
-/// externally visible definition.
-bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const {
- assert(!doesThisDeclarationHaveABody() &&
- "Must have a declaration without a body.");
-
- ASTContext &Context = getASTContext();
-
- // In C99 mode, a function may have an inline definition (causing it to
- // be deferred) then redeclared later. As a special case, "extern inline"
- // is not required to produce an external symbol.
- if (Context.getLangOptions().GNUInline || !Context.getLangOptions().C99 ||
- Context.getLangOptions().CPlusPlus)
- return false;
- if (getLinkage() != ExternalLinkage || isInlineSpecified())
- return false;
- const FunctionDecl *InlineDefinition = 0;
- if (hasBody(InlineDefinition))
- return InlineDefinition->isInlineDefinitionExternallyVisible();
- return false;
-}
-
/// \brief For an inline function definition in C or C++, determine whether the
/// definition will be externally visible.
///