[llvm] [Support] Add clang tooling generated explicit visibility macros (PR #113097)

Thomas Fransham via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 13:11:22 PST 2024


================
@@ -103,12 +103,12 @@ namespace detail {
 template <typename Period> struct unit { static const char value[]; };
 template <typename Period> const char unit<Period>::value[] = "";
 
-template <> struct unit<std::ratio<3600>> { static const char value[]; };
-template <> struct unit<std::ratio<60>> { static const char value[]; };
-template <> struct unit<std::ratio<1>> { static const char value[]; };
-template <> struct unit<std::milli> { static const char value[]; };
-template <> struct unit<std::micro> { static const char value[]; };
-template <> struct unit<std::nano> { static const char value[]; };
+template <> struct LLVM_ABI unit<std::ratio<3600>> { static const char value[]; };
+template <> struct LLVM_ABI unit<std::ratio<60>> { static const char value[]; };
+template <> struct LLVM_ABI unit<std::ratio<1>> { static const char value[]; };
+template <> struct LLVM_ABI unit<std::milli> { static const char value[]; };
+template <> struct LLVM_ABI unit<std::micro> { static const char value[]; };
+template <> struct LLVM_ABI unit<std::nano> { static const char value[]; };
 } // namespace detail
----------------
fsfod wrote:

I'm not sure, at some earlier time i had excluded these from being exported https://github.com/fsfod/llvm-project/commit/b24dc93ec9403d48b9bd593599c1d8da424bee29

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


More information about the llvm-commits mailing list