[lld-macho] Work around odr-use of const non-inline static data member to fix -O0...
authorFangrui Song <i@maskray.me>
Wed, 22 Jun 2022 02:22:28 +0000 (19:22 -0700)
committerFangrui Song <i@maskray.me>
Wed, 22 Jun 2022 02:22:28 +0000 (19:22 -0700)
commit20b2d3260d4a1878ca2a37cee6ee335a21a12d0f
tree4dddf72724c5bf52ced516e0ec119b3ed5309a36
parentc866f8544c929578a49e0b222f2171da71c9f415
[lld-macho] Work around odr-use of const non-inline static data member to fix -O0 build after D128298

```
ld.lld: error: undefined symbol: lld::macho::CodeSignatureSection::blockSize
>>> referenced by SyntheticSections.cpp:1253 (/home/maskray/llvm/lld/MachO/SyntheticSections.cpp:1253)
>>>               tools/lld/MachO/CMakeFiles/lldMachO.dir/SyntheticSections.cpp.o:(lld::macho::CodeSignatureSection::writeHashes(unsigned char*) const::$_7::operator()(unsigned long) const)
```
lld/MachO/SyntheticSections.cpp