[MC][WebAssembly] Error on data symbols in the text section.
authorSam Clegg <sbc@chromium.org>
Wed, 25 Sep 2019 23:33:16 +0000 (23:33 +0000)
committerSam Clegg <sbc@chromium.org>
Wed, 25 Sep 2019 23:33:16 +0000 (23:33 +0000)
commit079cba04bfa95f34d4b9e667f722ff6ebdf13ba6
treeb15eaabfe61e3fa5542488bca2ab5c92e4013b75
parentf8804047af8c397db804e5775009981d96db8fb4
[MC][WebAssembly] Error on data symbols in the text section.

Previously we had an assert but this can actually occur in valid user
code so we need to handle this in release builds too.

Differential Revision: https://reviews.llvm.org/D67997

llvm-svn: 372934
llvm/lib/MC/WasmObjectWriter.cpp
llvm/test/MC/WebAssembly/data-symbol-in-text-section.ll [new file with mode: 0644]