[PATCH] D62542: [WebAssembly] Make Emscripten-specific behavior specific to the Emscripten target
Dan Gohman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 11:48:59 PDT 2019
sunfish created this revision.
sunfish added reviewers: sbc100, dschuff, aheejin.
Herald added subscribers: rupprecht, jgravelle-google.
Herald added a project: LLVM.
Make some behaviors added for Emscripten compatibility conditional on the target being Emscripten.
- Add an WASM_SYMBOL_IMPLICITLY_USED flag, so that __attribute__((used)) doesn't need to imply exporting. When targeting Emscripten, have WASM_SYMBOL_IMPLICITLY_USED imply exporting.
- Limit PIC support to the Emscripten target, since the current PIC support is Emscripten-specific.
Repository:
rL LLVM
https://reviews.llvm.org/D62542
Files:
include/llvm/BinaryFormat/Wasm.h
include/llvm/MC/MCSymbolWasm.h
include/llvm/MC/MCWasmObjectWriter.h
lib/MC/MCWasmObjectTargetWriter.cpp
lib/MC/MCWasmStreamer.cpp
lib/MC/WasmObjectWriter.cpp
lib/ObjectYAML/WasmYAML.cpp
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
test/CodeGen/WebAssembly/address-offsets.ll
test/CodeGen/WebAssembly/call-pic.ll
test/CodeGen/WebAssembly/load-store-pic.ll
test/MC/WebAssembly/no-dead-strip.ll
tools/llvm-readobj/WasmDumper.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62542.201734.patch
Type: text/x-patch
Size: 11452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190528/cbfaa6a0/attachment.bin>
More information about the llvm-commits
mailing list