[all-commits] [llvm/llvm-project] eb200e: Emit the C++ dialect in -gmodules .pcm files.
adrian-prantl via All-commits
all-commits at lists.llvm.org
Mon Jan 10 16:14:14 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb200e584ece7ca8c1f8cac59ca5418956ccf1e4
https://github.com/llvm/llvm-project/commit/eb200e584ece7ca8c1f8cac59ca5418956ccf1e4
Author: Adrian Prantl <aprantl at apple.com>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
M clang/test/Modules/ModuleDebugInfo.cpp
Log Message:
-----------
Emit the C++ dialect in -gmodules .pcm files.
Because of commit: https://reviews.llvm.org/D104291 the -gmodules .pcm
files do not have the same DW_AT_language dialect as the .o file. This
was a simple matter of passing the DebugStrictDwarf flag to the
PCHContainerGenerator object's CodeGenOpts from the CompilerInstance
passed in to it.
Before this change if you ran dwarfdump on the gmodule cache folder
you would get DW_AT_language (DW_LANG_C_plus_plus) even when using
-std=c++14 with clang
Patch by Shubham Rastogi!
Differential Revision: https://reviews.llvm.org/D116790
More information about the All-commits
mailing list