summaryrefslogtreecommitdiff
path: root/src/passes/RemoveUnusedModuleElements.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-10-31 09:29:09 -0700
committerGitHub <noreply@github.com>2019-10-31 09:29:09 -0700
commitfb78a120277c023531020b146dd6506608aa9bcc (patch)
tree30a7066e5e63b214b562c6d4f23af309f7a32c23 /src/passes/RemoveUnusedModuleElements.cpp
parent2a787cdbe4cfb84801d4f885b155555c864ac006 (diff)
downloadbinaryen-fb78a120277c023531020b146dd6506608aa9bcc.tar.gz
binaryen-fb78a120277c023531020b146dd6506608aa9bcc.tar.bz2
binaryen-fb78a120277c023531020b146dd6506608aa9bcc.zip
Use absolute memory addresses for emasm string indexes. (#2408)
Before we used 0-based indexes which meant that we needed to modify the code calling the emasm function to replace the first argument. Now we use the string address itself as the index/code for the emasm constant. This allows use code to go unmodifed as the emscripten side will accept the memory address as the index/code. See: https://github.com/emscripten-core/emscripten/issues/9013
Diffstat (limited to 'src/passes/RemoveUnusedModuleElements.cpp')
0 files changed, 0 insertions, 0 deletions