[WebAssembly] Make stack-pointer imports mutable.
authorDan Gohman <dan433584@gmail.com>
Tue, 5 Dec 2017 18:29:48 +0000 (18:29 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 5 Dec 2017 18:29:48 +0000 (18:29 +0000)
commit32ce5ca07c5f0df389d023eee16005e6eb6bd160
tree92f230efca8e3b8dfcd8802881326e23ab7b7681
parent74de7e07916d3efb16fdabc3d2cfca085d026896
[WebAssembly] Make stack-pointer imports mutable.

This is not currently valid by the wasm spec, however:
 - It replaces doing set_global on an immutable global, which is also
   not valid.
 - It's expected be valid in the near future:
   https://github.com/WebAssembly/threads/blob/master/proposals/threads/Globals.md
 - This only occurs before linking, so a fully linked object will be
   valid.

llvm-svn: 319810
llvm/lib/MC/WasmObjectWriter.cpp