[mlir] Mark ClassID::getID as LLVM_EXTERNAL_VISIBILITY to ensure only one version...
authorRiver Riddle <riddleriver@gmail.com>
Wed, 8 Apr 2020 23:51:26 +0000 (16:51 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Wed, 8 Apr 2020 23:51:48 +0000 (16:51 -0700)
commit21605a1207743c9256c147086afa05c5c3636b26
tree7294ee1d0318af4983d8ae3924846c1fc5ca68f1
parentfe69eb119657e9c1b56f4e7818be7c46752ac116
[mlir] Mark ClassID::getID as LLVM_EXTERNAL_VISIBILITY to ensure only one version exists

Summary: ClassID is used as a type id and must be unique in the face of shared libraries to ensure correctness. This fixes failures related to BUILD_SHARED_LIBs on macos.

Differential Revision: https://reviews.llvm.org/D77764
mlir/include/mlir/Support/STLExtras.h