diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-11-29 22:33:09 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-11-29 22:33:09 +0000 |
commit | 55fcb4e90eab0777ced11e6607ee83ed724b4fd8 (patch) | |
tree | b3412066f26d23bd2e21922894c7d568578e3fd8 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
parent | 12ccfed3ff841b773463c508f5629d2a5b092d16 (diff) | |
download | bcm5719-llvm-55fcb4e90eab0777ced11e6607ee83ed724b4fd8.tar.gz bcm5719-llvm-55fcb4e90eab0777ced11e6607ee83ed724b4fd8.zip |
[-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
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r-- | clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index c164cec5d94..5d97807316b 100644 --- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -156,6 +156,8 @@ public: LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; CodeGenOpts.setDebugInfo(codegenoptions::FullDebugInfo); CodeGenOpts.setDebuggerTuning(CI.getCodeGenOpts().getDebuggerTuning()); + CodeGenOpts.DebugPrefixMap = + CI.getInvocation().getCodeGenOpts().DebugPrefixMap; } ~PCHContainerGenerator() override = default; |