[PATCH] D81143: [MC] Add a command line option to generate DWARF64 debug info [1/7]

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 11:33:23 PDT 2020


MaskRay accepted this revision.
MaskRay added subscribers: mstorsjo, rnk.
MaskRay added a comment.

Thanks!

> Add a command line option

This subject can be more specific, e.g. Add `--dwarf64` to generate DWARF64 debug info



================
Comment at: llvm/tools/llvm-mc/llvm-mc.cpp:408
+    // is supported only for 4-byte long references.
+    if (MAI->needsDwarfSectionOffsetDirective()) {
+      errs() << ProgName << ": the 64-bit DWARF format is not supported for "
----------------
@rnk @mstorsjo Will this be more appropriate checking for COFF explicitly?

Only `llvm/lib/MC/MCAsmInfoCOFF.cpp` sets `NeedsDwarfSectionOffsetDirective` to true.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81143/new/

https://reviews.llvm.org/D81143





More information about the llvm-commits mailing list