File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ Clang ``-gmodules`` debug info
88
99On Darwin platforms, including Apple macOS and iOS, Clang can emit
1010DWARF debug info for types found in `Clang
11- modules<https://clang.llvm.org/docs/Modules.html> `_ more efficiently.
11+ modules <https://clang.llvm.org/docs/Modules.html> `_ more efficiently.
1212
1313From an on-disk storage perspective, Clang modules are precompiled
1414header files that contain serialized Clang ASTs of all the
1515declarations found in a Clang module. In traditional DWARF debug info,
1616two object files that were built from sources that imported the same
1717header file will both contain DWARF debug type info for types in that
1818header file. This can lead to a lot of redundant `debug
19- info<https://llvm.org/devmtg/2015-10/#talk19> `_.
19+ info <https://llvm.org/devmtg/2015-10/#talk19> `_.
2020
2121When Clang compiles a Clang module or precompiled header with the
2222``-gmodules `` option, the precompiled header (``.pch ``) or module
5757M.pcm
5858
5959::
60+
6061 DW_TAG_compile_unit
6162 DW_AT_GNU_dwo_id (0xabcdef)
6263 DW_TAG_module
@@ -69,11 +70,13 @@ M.pcm
6970A.c
7071
7172::
73+
7274 A a;
7375
7476A.o
7577
7678::
79+
7780 DW_TAG_compile_unit
7881 DW_TAG_module
7982 DW_AT_name "M"
You can’t perform that action at this time.
0 commit comments