Wrap op (de)serialization methods in anonymous namespace
authorLei Zhang <antiagainst@google.com>
Fri, 19 Jul 2019 16:31:55 +0000 (09:31 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 19 Jul 2019 18:41:27 +0000 (11:41 -0700)
commit1331c84fe3d5448b9f2ce68a2c0077edb378d3fc
tree72124033165d1adef77ffb7ab670da7cfce8dc40
parentc253c6eb2fe3a92cb80f427e3d80f887551514e8
Wrap op (de)serialization methods in anonymous namespace

It's a known bug that older GCC is not happy with method specialization in
the enclosing (global) namespace:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480

This CL wraps the generated specialization methods in the anonymous namespace
to make sure the specialization is in the same namespace as the class.

PiperOrigin-RevId: 258983181
mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp
mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp