This is useful to omit the debug compilation dir when compiling assembly
files through the clang driver.
See https://bugs.llvm.org/show_bug.cgi?id=38050 for more details.
Paths
| Differential D48988
Debug prefix map for machine code emission ClosedPublic Authored by starsid on Jul 5 2018, 12:14 PM.
Details Summary This is useful to omit the debug compilation dir when compiling assembly See https://bugs.llvm.org/show_bug.cgi?id=38050 for more details.
Diff Detail
Event Timeline
Comment Actions Simplify code.
In-place editing ensures we did not miss a place, and simplifies lifecycle 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 Comment Actions Some minor things. clang-format-diff is your friend. :-)
starsid marked 3 inline comments as done. Comment ActionsLine length limit to 80. Remove -dwarf-version from test.
Comment Actions LGTM. If you have the interest and knowledge to automate clang-format-diff with arcanist, I'm sure there are many people who would be very happy to see a patch. I don't use arcanist but I know others do. This revision is now accepted and ready to land.Jul 9 2018, 12:44 PM Comment Actions
Thank you. I do not have write permissions for the repo, so will you please commit this for me. For the linter, I have sent D49116 to you. Closed by commit rL336680: Support -fdebug-prefix-map in llvm-mc. This is useful to omit the (authored by probinson). · Explain WhyJul 10 2018, 7:46 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 154807 llvm/trunk/include/llvm/MC/MCContext.h
llvm/trunk/include/llvm/MC/MCDwarf.h
llvm/trunk/lib/MC/MCContext.cpp
llvm/trunk/lib/MC/MCDwarf.cpp
llvm/trunk/lib/MC/MCObjectStreamer.cpp
llvm/trunk/test/MC/ELF/debug-prefix-map.s
llvm/trunk/tools/llvm-mc/llvm-mc.cpp
|