diff options
author | Adrian Prantl <adrian-prantl@users.noreply.github.com> | 2023-09-12 08:31:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 08:31:27 -0700 |
commit | 167acac417254d85a1eb36d3a2479b50cedef271 (patch) | |
tree | bd392e376da2ffe1b736fb90b2cdffe685f5b28a /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
parent | c8d405323e2f7c4ce6d65168ad8e79f669feece2 (diff) | |
download | llvm-167acac417254d85a1eb36d3a2479b50cedef271.zip llvm-167acac417254d85a1eb36d3a2479b50cedef271.tar.gz llvm-167acac417254d85a1eb36d3a2479b50cedef271.tar.bz2 |
Propagate the DWARF version from the main compiler invocation to PCHC… (#66032)
…ontainerGenerator
Currently it remains uninitialized and thus always uses the LLVM default
of 4.
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r-- | clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index 114a9c1..9ffeef0 100644 --- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -160,6 +160,7 @@ public: LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; CodeGenOpts.setDebugInfo(llvm::codegenoptions::FullDebugInfo); CodeGenOpts.setDebuggerTuning(CI.getCodeGenOpts().getDebuggerTuning()); + CodeGenOpts.DwarfVersion = CI.getCodeGenOpts().DwarfVersion; CodeGenOpts.DebugPrefixMap = CI.getInvocation().getCodeGenOpts().DebugPrefixMap; CodeGenOpts.DebugStrictDwarf = CI.getCodeGenOpts().DebugStrictDwarf; |