[PATCH] D48988: Debug prefix map for machine code emission

Siddhartha Bagaria via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 6 19:25:23 PDT 2018


starsid updated this revision to Diff 154481.
starsid added a comment.

Simplify code.

- Remap DWARF dirs in place before calling Emit.
- Remap compilation dir in place before calling Emit.

In-place editing ensures we did not miss a place, and simplifies lifecycle
management of the strings.

The option is available only through llvm-mc and cc1as.

All regression tests pass.

  [100%] Running the LLVM regression tests
  Testing Time: 171.72s
    Expected Passes    : 25615
    Expected Failures  : 149
    Unsupported Tests  : 667


Repository:
  rL LLVM

https://reviews.llvm.org/D48988

Files:
  include/llvm/MC/MCContext.h
  include/llvm/MC/MCDwarf.h
  lib/MC/MCContext.cpp
  lib/MC/MCDwarf.cpp
  lib/MC/MCObjectStreamer.cpp
  test/MC/ELF/debug-prefix-map.s
  tools/llvm-mc/llvm-mc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48988.154481.patch
Type: text/x-patch
Size: 6932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180707/8a1112aa/attachment.bin>


More information about the llvm-commits mailing list