[PATCH] D101972: Force visibility of llvm::Any to external
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 12 13:56:21 PDT 2021
serge-sans-paille updated this revision to Diff 344950.
serge-sans-paille retitled this revision from "For visibility of llvm::Any to external" to "Force visibility of llvm::Any to external".
serge-sans-paille added a comment.
I've successfully tested that one and it works fine.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101972/new/
https://reviews.llvm.org/D101972
Files:
llvm/include/llvm/ADT/Any.h
Index: llvm/include/llvm/ADT/Any.h
===================================================================
--- llvm/include/llvm/ADT/Any.h
+++ llvm/include/llvm/ADT/Any.h
@@ -23,7 +23,7 @@
namespace llvm {
-class Any {
+class LLVM_EXTERNAL_VISIBILITY Any {
template <typename T> struct TypeId { static const char Id; };
struct StorageBase {
@@ -110,7 +110,6 @@
template <typename T> const char Any::TypeId<T>::Id = 0;
-
template <typename T> bool any_isa(const Any &Value) {
if (!Value.Storage)
return false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101972.344950.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210512/3f4683a4/attachment.bin>
More information about the llvm-commits
mailing list