diff options
author | Richard Howell <rmaz@users.noreply.github.com> | 2023-09-29 11:30:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 11:30:33 -0700 |
commit | c14ca4c16c22b4b018f0fe60b4c656d37f4a76dc (patch) | |
tree | 4b31385725968c0e3447d9b32a839395dc49b493 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
parent | ce38cbb13bb1110df43456cfe541da0fc004c99f (diff) | |
download | llvm-c14ca4c16c22b4b018f0fe60b4c656d37f4a76dc.zip llvm-c14ca4c16c22b4b018f0fe60b4c656d37f4a76dc.tar.gz llvm-c14ca4c16c22b4b018f0fe60b4c656d37f4a76dc.tar.bz2 |
[clang] set DebugCompilationDir in PCHContainer (#67744)
This change sets the debug compilation directory when generating debug
information for PCH object containers. This allows for overriding the
compilation directory in debug information in precompiled pcm files.
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 9ffeef0..ee543e4 100644 --- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -161,6 +161,8 @@ public: CodeGenOpts.setDebugInfo(llvm::codegenoptions::FullDebugInfo); CodeGenOpts.setDebuggerTuning(CI.getCodeGenOpts().getDebuggerTuning()); CodeGenOpts.DwarfVersion = CI.getCodeGenOpts().DwarfVersion; + CodeGenOpts.DebugCompilationDir = + CI.getInvocation().getCodeGenOpts().DebugCompilationDir; CodeGenOpts.DebugPrefixMap = CI.getInvocation().getCodeGenOpts().DebugPrefixMap; CodeGenOpts.DebugStrictDwarf = CI.getCodeGenOpts().DebugStrictDwarf; |