This is an archive of the discontinued LLVM Phabricator instance.

reland: [clang] Don't append the working directory to absolute paths
ClosedPublic

Authored by keith on Mar 14 2022, 8:55 PM.

Details

Summary

This fixes a bug that happens when using -fdebug-prefix-map to remap an
absolute path to a relative path. Since the path was absolute before
remapping, it is safe to assume that concatenating the remapped working
directory would be wrong.

This was originally submitted as https://reviews.llvm.org/D113718, but
reverted because when testing with dwarf 6 enabled, the tests were too
strict.

Diff Detail

Event Timeline

keith created this revision.Mar 14 2022, 8:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2022, 8:55 PM
keith requested review of this revision.Mar 14 2022, 8:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2022, 8:55 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aprantl accepted this revision.Mar 15 2022, 9:01 AM
This revision is now accepted and ready to land.Mar 15 2022, 9:01 AM