[llvm] [llvm] Add explicit visibility macros to YAMLTraits classes (PR #111484)

Thomas Fransham via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 10:33:50 PST 2024


================
@@ -2079,6 +2079,15 @@ template <typename T> struct StdMapStringCustomMappingTraitsImpl {
   LLVM_YAML_IS_SEQUENCE_VECTOR_IMPL(type, true)
 
 #define LLVM_YAML_DECLARE_MAPPING_TRAITS(Type)                                 \
+  namespace llvm {                                                             \
+  namespace yaml {                                                             \
+  template <> struct LLVM_ABI MappingTraits<Type> {                            \
+    static void mapping(IO &IO, Type &Obj);                                    \
+  };                                                                           \
+  }                                                                            \
+  }
+
+#define LLVM_YAML_DECLARE_MAPPING_TRAITS_NOEXPORT(Type)                        \
----------------
fsfod wrote:

that could work

https://github.com/llvm/llvm-project/pull/111484


More information about the llvm-commits mailing list