[PATCH] D46850: [DebugInfo] Generate fixups as emitting DWARF .debug_line.

Hsiangkai Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 14 14:13:46 PDT 2018


HsiangKai created this revision.
HsiangKai added reviewers: kito-cheng, shiva0217.
Herald added subscribers: llvm-commits, mgrang, edward-jones, zzheng, JDevlieghere, niosHD, sabuasal, apazos, jordy.potman.lists, simoncook, johnrusso, rbar, asb, aprantl.

It is necessary to generate fixups in .debug_line as relaxation is
enabled due to the address delta may be changed after relaxation.

DWARF will record the mappings of lines and addresses in
.debug_line section. It will encode the information using special
opcodes, standard opcodes and extended opcodes in 'Line Number
Program'. I use DW_LNS_fixed_advance_pc to encode fixed length
address delta and DW_LNE_set_address to encode absolute address
to make it possible to generate fixups in .debug_line section.


Repository:
  rL LLVM

https://reviews.llvm.org/D46850

Files:
  include/llvm/MC/MCDwarf.h
  include/llvm/MC/MCFragment.h
  lib/MC/MCAssembler.cpp
  lib/MC/MCDwarf.cpp
  test/DebugInfo/RISCV/relax-debug-line.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46850.146686.patch
Type: text/x-patch
Size: 10442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180514/29dbe458/attachment.bin>


More information about the llvm-commits mailing list