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 [MC] Add support for the .rva assembler directive for COFF targets 2018-07-26 20:11:26 +00:00
DarwinAsmParser.cpp [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
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 [MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-10 01:33:54 +00:00
MCTargetAsmParser.cpp [Asm] Add debug tracing in table-generated assembly matcher 2017-10-11 09:17:43 +00:00
WasmAsmParser.cpp [WebAssembly] Added WasmAsmParser. 2018-11-12 20:15:01 +00:00