hanchenye-llvm-project/lldb
Pavel Labath 2841e6edc8 [DWARF] Centralize user_id <-> DWARFDIE conversions
Summary:
The logic for translating a user_id into a DWARFDIE was replicated in
several places. This removes that redundancy and settles on a single
implementation in SymbolFileDWARF.

The reason for choosing that instead of DIERef was that we were
always immediately converting the returned DIERef into a DWARFDIE
anyway, which meant that one had to specify the SymbolFileDWARF argument
twice (once to get the DIERef, and once to get the actual DIE). Also,
passing a higher-level object (SymbolFileDWARF) into a lower-level one
(DIERef) seemed like a less intuitive arrangement than doing things the
other way around.

Reviewers: JDevlieghere, clayborg, aprantl

Subscribers: tberghammer, jankratochvil, lldb-commits

Differential Revision: https://reviews.llvm.org/D61648

llvm-svn: 360246
2019-05-08 11:43:05 +00:00
..
cmake [CMake] Fix subtle CMake bug 2019-04-29 19:44:43 +00:00
docs [Docs] Fix incorrect heading and update titles. 2019-05-08 01:51:26 +00:00
examples [Python] Simplify the code. NFCI. 2019-04-18 23:24:54 +00:00
include/lldb Propagate command interpreter errors from lldlbinit 2019-05-08 01:23:47 +00:00
lit Propagate command interpreter errors from lldlbinit 2019-05-08 01:23:47 +00:00
lldb.xcodeproj Revert xcode scheme changes that I didn't mean to check in. 2019-05-06 20:03:30 +00:00
lldb.xcworkspace Remove accidentally commited file in xcshareddata 2019-02-05 23:35:01 +00:00
packages/Python/lldbsuite [test] Remove randomness 2019-05-05 18:54:16 +00:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts Kill modify-python-lldb.py 2019-04-24 13:23:19 +00:00
source [DWARF] Centralize user_id <-> DWARFDIE conversions 2019-05-08 11:43:05 +00:00
test [CMake] Fix subtle CMake bug 2019-04-29 19:44:43 +00:00
third_party/Python/module [lldb/thirdparty] Remove unneeded files, asked by Jonas. 2019-03-12 20:41:36 +00:00
tools [Driver] Add command line option to allow loading local lldbinit file. 2019-05-07 16:57:17 +00:00
unittests Fixup r360161 2019-05-07 16:13:10 +00:00
utils [lldb] [lit] Add tests for reading ZMM registers (AVX512) 2019-04-29 11:38:10 +00:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [CMake] Fix subtle CMake bug 2019-04-29 19:44:43 +00:00
CODE_OWNERS.txt Fix/unify the spelling of Objective-C. 2018-06-13 16:21:24 +00:00
INSTALL.txt Fix build URL in new LLDB website 2019-05-01 09:55:00 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py