}
}
- LV.mergeVisibility(Context.getLangOpts().getVisibilityMode());
+ if (F.ConsiderGlobalVisibility)
+ LV.mergeVisibility(Context.getLangOpts().getVisibilityMode());
// C++ [basic.link]p4:
if (LV.linkage() == UniqueExternalLinkage)
return LinkageInfo::uniqueExternal();
- LV.mergeVisibility(D->getASTContext().getLangOpts().getVisibilityMode());
+ if (F.ConsiderGlobalVisibility)
+ LV.mergeVisibility(D->getASTContext().getLangOpts().getVisibilityMode());
if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D)) {
// If the type of the function uses a type with unique-external