[PATCH] D82346: [WebAssebmly] Fully disable 'protected' visibility
Sam Clegg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 20:57:02 PDT 2020
sbc100 created this revision.
Herald added subscribers: cfe-commits, aheejin, jgravelle-google, dschuff.
Herald added a project: clang.
sbc100 added a reviewer: dschuff.
Emscripten doesn't use protected visibility either.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82346
Files:
clang/lib/Basic/Targets/WebAssembly.h
Index: clang/lib/Basic/Targets/WebAssembly.h
===================================================================
--- clang/lib/Basic/Targets/WebAssembly.h
+++ clang/lib/Basic/Targets/WebAssembly.h
@@ -133,11 +133,7 @@
bool hasExtIntType() const override { return true; }
- bool hasProtectedVisibility() const override {
- // TODO: For now, continue to advertise "protected" support for
- // Emscripten targets.
- return getTriple().isOSEmscripten();
- }
+ bool hasProtectedVisibility() const override { return false; }
};
class LLVM_LIBRARY_VISIBILITY WebAssembly32TargetInfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82346.272595.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200623/2f604687/attachment.bin>
More information about the cfe-commits
mailing list