[llvm] 3901115 - [SystemZ/z/OS] Fix failing dynamic library unit test.

Kai Nacke via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 9 10:48:42 PDT 2022


Author: Kai Nacke
Date: 2022-06-09T13:48:19-04:00
New Revision: 390111511614aa7343397cc8a936ea810e3eba9e

URL: https://github.com/llvm/llvm-project/commit/390111511614aa7343397cc8a936ea810e3eba9e
DIFF: https://github.com/llvm/llvm-project/commit/390111511614aa7343397cc8a936ea810e3eba9e.diff

LOG: [SystemZ/z/OS] Fix failing dynamic library unit test.

Root cause for the failure is that the visibility of symbols
is different on z/OS. To fix the failure, the symbols need to
be exported.

Reviewed By: abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D127416

Added: 
    

Modified: 
    llvm/unittests/Support/DynamicLibrary/PipSqueak.h

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Support/DynamicLibrary/PipSqueak.h b/llvm/unittests/Support/DynamicLibrary/PipSqueak.h
index a32c06cdf5f6..3eac1e0f64a7 100644
--- a/llvm/unittests/Support/DynamicLibrary/PipSqueak.h
+++ b/llvm/unittests/Support/DynamicLibrary/PipSqueak.h
@@ -24,6 +24,8 @@
 
 #ifdef _WIN32
 #define PIPSQUEAK_EXPORT __declspec(dllexport)
+#elif defined(__MVS__)
+#define PIPSQUEAK_EXPORT __attribute__((__visibility__("default")))
 #else
 #define PIPSQUEAK_EXPORT
 #endif


        


More information about the llvm-commits mailing list