Same as r332530, move WasmSymbol::dump to an implementation file to avoid linker
issues when the dump function is seen in the header, doesn't get eliminated, and
then linking fails because of the missing dependency.
rdar://problem/40258137
Differential D46985
[NFC] WebAssembly build break #2 jfb on May 16 2018, 3:31 PM. Authored by
Details Same as r332530, move WasmSymbol::dump to an implementation file to avoid linker rdar://problem/40258137
Diff Detail
Event TimelineComment Actions Why does this work? Doesn't LLVM_DUMP_METHOD force this method into the link regardless? I though that was the point of it.. so it would never be eliminated. Comment Actions I may be misunderstanding: I thought this was here for lldb's usage purpose (or any debugger, so you can dump while debugging), so if it gets generated then it cannot get eliminated even if unused. If you only see the header you only have a forward declaration, so there's nothing that could be eliminated anyways. |