[PATCH] D76416: [WIP][ASan] Apply -ffile-prefix-map mappings to ASan instrumentation

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 19 19:15:06 PDT 2020


leonardchan added a subscriber: mcgrathr.
leonardchan added a comment.

Putting this on hold for now. Although this implementation works for ASan, it would be have to be repeated for other tools like SourceBasedCoverage or other sanitizers.

After discussing with @phosek and @mcgrathr, a more general approach would be to develop some internal API that allows users to get SourceLocations for metadata or other paths that will be embeded in IR. Then once we have a single source for retrieving these paths, we could apply `-ffile-prefix-mapping`s once to prevent having to propagate the mapping down to IR.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76416





More information about the cfe-commits mailing list