diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2021-07-28 05:22:45 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2021-07-28 18:37:05 +0000 |
commit | 660a56956c32b0bcd850fc12fa8ad0225a6bb880 (patch) | |
tree | 33beef4e84584e60dcc0e0204a112ab8f19e14b7 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 6cba96332b3ae2cbf3f9b62dfb407f3275f6cf79 (diff) | |
download | llvm-660a56956c32b0bcd850fc12fa8ad0225a6bb880.zip llvm-660a56956c32b0bcd850fc12fa8ad0225a6bb880.tar.gz llvm-660a56956c32b0bcd850fc12fa8ad0225a6bb880.tar.bz2 |
Emit strong definition for TypeID storage in Op/Type/Attributes definition
By making an explicit template specialization for the TypeID provided by these classes,
the compiler will not emit an inline weak definition and rely on the linker to unique it.
Instead a single definition will be emitted in the C++ file alongside the implementation
for these classes. That will turn into a linker error what is now a hard-to-debug runtime
behavior where instances of the same class may be using a different TypeID inside of
different DSOs.
Differential Revision: https://reviews.llvm.org/D105903
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions