This uses the same code for producing pcrel relocations in ELF, COFF and WebAsm.
Diff Detail
Diff Detail
Event Timeline
lib/MC/MCAssembler.cpp | ||
---|---|---|
202 | Maybe move this check down so getSymB is only called once? |
lib/MC/MCAssembler.cpp | ||
---|---|---|
214 | Should we check this first before we do work on SymB? It'll predict well. | |
test/MC/AArch64/error-location.s | ||
7 | Can we improve this diagnostic to mention SymbolB and maybe SymbolA? This test case makes it seem like our assembler diagnostics will get harder to understand. I was thinking: error: No relocation available to represent the subtraction of 'undef' in this expression |
Maybe move this check down so getSymB is only called once?