OSDN Git Service

[WebAssembly] Enabled -triple=wasm32-unknown-unknown-wasm path using ELF directive...
authorSam Clegg <sbc@chromium.org>
Thu, 19 Apr 2018 22:00:53 +0000 (22:00 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 19 Apr 2018 22:00:53 +0000 (22:00 +0000)
commitcbec9b05be80736e78b7e0c63fabd4a095253400
treec9403b13aa4ab65be1ff9f711fb31c3d0ca87477
parentc625656e2601dc94fdc09cc6515644c0a50b8ac8
[WebAssembly] Enabled -triple=wasm32-unknown-unknown-wasm path using ELF directive parser.

This is a temporary solution until a proper WASM implementation of
MCAsmParserExtension is in place, but at least for now will unblock this
path.

Added test to make sure this path works with the WASM Assembler.

Patch By Wouter van Oortmerssen!

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330370 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
test/MC/WebAssembly/basic-assembly.s