[WebAssebmly][MC] Support .import_name/.import_field asm directives
authorSam Clegg <sbc@chromium.org>
Sun, 1 Dec 2019 18:49:03 +0000 (10:49 -0800)
committerSam Clegg <sbc@chromium.org>
Fri, 6 Dec 2019 23:09:56 +0000 (15:09 -0800)
commitb4f4e370b59a753a51f11848f54e9705f43cccaf
tree351be282fc57ccda21b5fc8fcfcb992d5313d10b
parent1d9291cc785c453ac189d131271e91f8aaf6858c
[WebAssebmly][MC] Support .import_name/.import_field asm directives

Convert the MC test to use asm rather than bitcode.

This is a precursor to https://reviews.llvm.org/D70520.

Differential Revision: https://reviews.llvm.org/D70877
clang/include/clang/Basic/AttrDocs.td
lld/test/wasm/import-name.ll [moved from lld/test/wasm/import-names.ll with 100% similarity]
llvm/include/llvm/MC/MCSymbolWasm.h
llvm/lib/MC/WasmObjectWriter.cpp
llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
llvm/test/MC/WebAssembly/import-module.ll [deleted file]
llvm/test/MC/WebAssembly/import-module.s [new file with mode: 0644]