OSDN Git Service

[WebAssembly] Add support for data sections in the assembler.
authorWouter van Oortmerssen <aardappel@gmail.com>
Mon, 4 Mar 2019 17:18:04 +0000 (17:18 +0000)
committerWouter van Oortmerssen <aardappel@gmail.com>
Mon, 4 Mar 2019 17:18:04 +0000 (17:18 +0000)
commit328c03355279f68186ee6230ba73c79b69b6d082
treef741d607a22dcba25a020eda5359d5bce4c19092
parenta83437e37e6747cb7f5787f16b6eb9dfce3f968d
[WebAssembly] Add support for data sections in the assembler.

Summary:
This is quite minimal so far, introduce them with .section,
fill them with .int8 or .asciz, end with .size

Reviewers: dschuff, sbc100, aheejin

Subscribers: jgravelle-google, sunfish, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355321 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/WasmAsmParser.cpp
lib/MC/WasmObjectWriter.cpp
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
test/MC/WebAssembly/basic-assembly.s
test/MC/WebAssembly/data-section.s [new file with mode: 0644]