summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-07-07 21:03:28 +0000
committerCameron Zwarich <zwarich@apple.com>2011-07-07 21:03:28 +0000
commitbe652e6a24069949e5a1fa06e7c68c5550fc23c3 (patch)
tree20b0242dbcdab3b807368dca837a4926e434da98 /clang/lib/AST/Decl.cpp
parent9f6f6f6ecc166ceec1958de71a7789bb4c819c5f (diff)
downloadbcm5719-llvm-be652e6a24069949e5a1fa06e7c68c5550fc23c3.tar.gz
bcm5719-llvm-be652e6a24069949e5a1fa06e7c68c5550fc23c3.zip
r134634 causes a failure on MultiSource/Benchmarks/Olden/bh with TEST=nightly,
so roll it out. llvm-svn: 134638
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 9feec9d82ab..9b507cfc5e2 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/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.
///
OpenPOWER on IntegriCloud