summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-11-29 22:33:09 +0000
committerAdrian Prantl <aprantl@apple.com>2018-11-29 22:33:09 +0000
commit55fcb4e90eab0777ced11e6607ee83ed724b4fd8 (patch)
treeb3412066f26d23bd2e21922894c7d568578e3fd8 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent12ccfed3ff841b773463c508f5629d2a5b092d16 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud