1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/test/MC
Wouter van Oortmerssen c0b486e8f3 [WebAssembly] Fix assert in lookup of section symbols
Fixes assert in: https://bugs.llvm.org/show_bug.cgi?id=49036

getWasmSection creates sections if they don't exist, but doesn't add them to the Symbols table. This may cause problems in subsequent calls to getOrCreateSymbol which checks this table, the calls createSymbol assuming it doesn't exist, which then checks UsedNames and finds out it does exist, causing an assert on trying to rename a non-temp symbol.

I tried also fixing the somewhat unintuitive forced suffixing (adding `0`), but it turns out that WasmObjectWriter currently assumes these section symbols are unique, so that may have to be a separate fix: https://bugs.llvm.org/show_bug.cgi?id=49252

Also worth noting is that getWasmSection calling createSymbol may not be correct to start with, given that createSymbol seems to assume it is creating non-section symbols. But again, for a future fix.

Related: where some of this was introduced: 8d396acac3

Differential Revision: https://reviews.llvm.org/D96473
2021-02-18 11:50:14 -08:00
..
AArch64 ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
AMDGPU [AMDGPU] Temporary remove test 2021-02-17 22:41:04 -08:00
ARM ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
AsmParser
AVR [AVR] Fix global references to function symbols 2021-02-10 00:40:49 +13:00
BPF
COFF
Disassembler [AMDGPU] gfx90a support 2021-02-17 16:01:32 -08:00
ELF ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
Hexagon ELFObjectWriter: Don't sort local symbols 2021-02-07 15:47:10 -08:00
Lanai
MachO
Mips ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
MSP430
PowerPC ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
RISCV [RISCV] Change parseVTypeI function 2021-02-12 19:38:34 +08:00
Sparc [Sparc] Support relocatable expressions in the assembler 2021-02-10 14:52:44 +01:00
SystemZ
VE
WebAssembly [WebAssembly] Fix assert in lookup of section symbols 2021-02-18 11:50:14 -08:00
X86 [X86] Accept 64-bit GPRs for vextractps when using a register that requires EVEX. 2021-02-01 11:01:32 -08:00