llvm-project/llvm/lib/MC/MCParser
Vladimir Stefanovic 1d2714be13 [MC] Support labels as offsets in .reloc directive
Currently, expressions like

  .reloc 1f, R_MIPS_JALR, foo
  1: nop

are not allowed, ie. an offset in .reloc can only be absolute value.
This patch adds support for labels as offsets.
If offset is a forward declared label, MCObjectStreamer keeps the fixup locally
and adds it to the fixups vector after the label (and its offset) is defined.
label+number is not supported yet.

Differential revision: https://reviews.llvm.org/D53990

llvm-svn: 347397
2018-11-21 16:28:39 +00:00
..
AsmLexer.cpp [WebAssembly] replaced .param/.result by .functype 2018-11-19 17:10:36 +00:00
AsmParser.cpp [MC] Support labels as offsets in .reloc directive 2018-11-21 16:28:39 +00:00
CMakeLists.txt [WebAssembly] Added WasmAsmParser. 2018-11-12 20:15:01 +00:00
COFFAsmParser.cpp
DarwinAsmParser.cpp
ELFAsmParser.cpp [Hexagon] Handle Hexagon's SHF_HEX_GPREL section flag 2018-11-09 14:17:27 +00:00
LLVMBuild.txt
MCAsmLexer.cpp [WebAssembly] replaced .param/.result by .functype 2018-11-19 17:10:36 +00:00
MCAsmParser.cpp [MC] Shrink MCAsmParser by grouping bools, add const, NFC 2018-10-22 22:29:09 +00:00
MCAsmParserExtension.cpp
MCTargetAsmParser.cpp
WasmAsmParser.cpp [WebAssembly] Added WasmAsmParser. 2018-11-12 20:15:01 +00:00