]> granicus.if.org Git - llvm/commit
[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)
commit113661421e2efe187774045e34f5c76e7a80e899
treede3ee6f21e475cf5bf1be0fc18577d13bddf575a
parent2f9bd276dafde2ecfbdeb7f610b9642155575d85
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372934 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/WasmObjectWriter.cpp
test/MC/WebAssembly/data-symbol-in-text-section.ll [new file with mode: 0644]