[PATCH] D80382: [MC] Implement generating 64-bit debug info.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 21 09:09:12 PDT 2020


ikudrin created this revision.
ikudrin added reviewers: dblaikie, probinson, aprantl, jhenderson, MaskRay, echristo.
ikudrin added projects: LLVM, debug-info.
Herald added subscribers: hiraditya, emaste.
Herald added a reviewer: espindola.

The patch adds a new command-line switch `--dwarf64` to `llvm-mc`, which selects the format of debug info generated by the tool. The support is limited to 64-bit targets because the format requires using 64-bit relocations. `COFF` targets are not supported for the same reason.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80382

Files:
  llvm/include/llvm/MC/MCContext.h
  llvm/include/llvm/MC/MCTargetOptions.h
  llvm/include/llvm/MC/MCTargetOptionsCommandFlags.h
  llvm/lib/MC/MCDwarf.cpp
  llvm/lib/MC/MCTargetOptions.cpp
  llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
  llvm/test/MC/COFF/dwarf64-err.s
  llvm/test/MC/ELF/gen-dwarf64.s
  llvm/tools/llvm-mc/llvm-mc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80382.265515.patch
Type: text/x-patch
Size: 20929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200521/d1e0274d/attachment.bin>


More information about the llvm-commits mailing list