Support Debug Info path remapping

Description

Support Debug Info path remapping

Add support for the -fdebug-prefix-map= option as in GCC. The syntax is
-fdebug-prefix-map=OLD=NEW. When compiling files from a path beginning with
OLD, change the debug info to indicate the path as start with NEW. This is
particularly helpful if you are preprocessing in one path and compiling in
another (e.g. for a build cluster with distcc).

Note that the linearity of the implementation is not as terrible as it may seem.
This is normally done once per file with an expectation that the map will be
small (1-2) entries, making this roughly linear in the number of input paths.

Addresses PR24619.

Details

Committed
compnerdOct 12 2015, 1:21 PM
Parents
rL250093: Support RHEL 7 and similar systems that use architecture-specific Python lib…
Branches
Unknown
Tags
Unknown