OSDN Git Service

[WebAssembly] Use the correct size for MCFillFragment
authorSam Clegg <sbc@chromium.org>
Mon, 10 Jul 2017 18:36:34 +0000 (18:36 +0000)
committerSam Clegg <sbc@chromium.org>
Mon, 10 Jul 2017 18:36:34 +0000 (18:36 +0000)
commit589c8caef1a6c17c21d6340b1b117364eedb2c7f
tree38048b379f0c57d261d3226012daa1dcb4a06d2e
parent374ba004d2a8831dca813371417f124610ce684c
[WebAssembly] Use the correct size for MCFillFragment

Summary: When implementing MCFillFragment, use the size of the fragment,
rather than the size of the section.

Patch by Dan Gohman

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/WasmObjectWriter.cpp
test/MC/WebAssembly/array-fill.ll [new file with mode: 0644]