aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unicode.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-12-02 15:55:25 -0800
committerSam Clegg <sbc@chromium.org>2020-12-03 11:06:07 -0800
commit701fa0b5ab04e9aa309cbc30599e9d6ee879e61a (patch)
treed19e8bee46ba04ba80fc0645662e1cd871a6ba3e /llvm/lib/Support/Unicode.cpp
parentfb2e109d4520df0872babe4ea715c43ad16a7cd5 (diff)
downloadllvm-701fa0b5ab04e9aa309cbc30599e9d6ee879e61a.zip
llvm-701fa0b5ab04e9aa309cbc30599e9d6ee879e61a.tar.gz
llvm-701fa0b5ab04e9aa309cbc30599e9d6ee879e61a.tar.bz2
[lld][WebAssembly] Fix malformed output with -pie + --shared-memory
The conditional guarding createInitMemoryFunction was incorrect and didn't match that guarding the creation of the associated symbol. Rather that reproduce the same conditions in multiple places we can simply use the presence of the associated symbol. Also, add an assertion that would have caught this bug. Also, add a new test for this flag combination. This is part of an ongoing effort to enable dynamic linking with threads in emscripten. See https://github.com/emscripten-core/emscripten/issues/3494 Differential Revision: https://reviews.llvm.org/D92520
Diffstat (limited to 'llvm/lib/Support/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions