summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2018-12-07 14:56:50 +0000
committerErich Keane <erich.keane@intel.com>2018-12-07 14:56:50 +0000
commitc6d5631cd57d089bc484b8a6e9926af6c2f3cef6 (patch)
treeed95f578ca2da93ff5e2afc35d2f21db94059f12 /clang/lib/AST/ASTContext.cpp
parent9419eb42c45be0e4f540bbcbb6bb93d8876559c6 (diff)
downloadbcm5719-llvm-c6d5631cd57d089bc484b8a6e9926af6c2f3cef6.tar.gz
bcm5719-llvm-c6d5631cd57d089bc484b8a6e9926af6c2f3cef6.zip
Revert "Multiversioning- Ensure all MV functions are emitted."
This reverts commit 65df29f9318ac13a633c0ce13b2b0bccf06e79ca. AS suggested by @rsmith here: https://reviews.llvm.org/rL345839 I'm reverting this and solving the initial problem in a different way. llvm-svn: 348595
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 464fa4bf4b5..3e7e8ac956b 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -9840,10 +9840,6 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) {
return true;
if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
- // Multiversioned functions always have to be emitted, because they are used
- // by the resolver.
- if (FD->isMultiVersion())
- return true;
// Forward declarations aren't required.
if (!FD->doesThisDeclarationHaveABody())
return FD->doesDeclarationForceExternallyVisibleDefinition();
OpenPOWER on IntegriCloud