aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorAlexey Lapshin <a.v.lapshin@mail.ru>2021-11-08 18:34:32 +0300
committerAlexey Lapshin <a.v.lapshin@mail.ru>2021-11-09 14:14:06 +0300
commitc8ae08987db2db5ff26a094b963e126e90a922dc (patch)
tree63ddab59927def30ea64e8a538ca3e96cd0c97f2 /clang/lib/Basic/SourceManager.cpp
parentcb728cb8a9b3d0329b41dbe6d0de830eb2a0312b (diff)
downloadllvm-c8ae08987db2db5ff26a094b963e126e90a922dc.zip
llvm-c8ae08987db2db5ff26a094b963e126e90a922dc.tar.gz
llvm-c8ae08987db2db5ff26a094b963e126e90a922dc.tar.bz2
[llvm-dwarfdump] dump link to the immediate parent.
It is often useful to know which die is the parent of the current die. This patch adds information about parent offset into the dump: 0x0000000b: DW_TAG_compile_unit DW_AT_producer ("by_hand") 0x00000014: DW_TAG_base_type (0x0000000b) <<<<<<<<<<<<<< DW_AT_name ("int") Now it is easy to see which die is the parent of the current die. This patch makes that behaviour to be default. We can make it to be opt-in if neccessary. This functionality differs from already existed "--show-parents" in that sence that parent information is shown for all dies and only link to the immediate parent is shown. Differential Revision: https://reviews.llvm.org/D113406
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions