[-gmodules] Honor -fdebug-prefix-map in the debug info inside PCMs.
authorAdrian Prantl <aprantl@apple.com>
Thu, 29 Nov 2018 22:33:09 +0000 (22:33 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 29 Nov 2018 22:33:09 +0000 (22:33 +0000)
commit55fcb4e90eab0777ced11e6607ee83ed724b4fd8
treeb3412066f26d23bd2e21922894c7d568578e3fd8
parent12ccfed3ff841b773463c508f5629d2a5b092d16
[-gmodules] Honor -fdebug-prefix-map in the debug info inside PCMs.

This patch passes -fdebug-prefix-map (a feature for renaming source
paths in the debug info) through to the per-module codegen options and
adds the debug prefix map to the module hash.

<rdar://problem/46045865>

Differential Revision: https://reviews.llvm.org/D55037

llvm-svn: 347926
clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Modules/module-debuginfo-prefix.m [new file with mode: 0644]