llvm-capstone/lldb
Pavel Labath a71ce4f1e8 DWARF: Avoid storing DIERefs in long-lived containers
Summary:
A user_id_t carries the same information as a DIERef, but it takes up
less space.

Furthermore, DIERef::operator<'s implementation is very
questionable, as it does not take the cu_offset and section fields into
account. Using just the die offset was correct in the days when all
debug info lived in a single section, but since we started supporting
DWO debug info, this was no longer true. The comparison operator could
be fixed, but it seems like using the user_id_t for these purposes is a
better idea overall.

I think this did not cause any bugs, because the only place the
comparison operator was used is in m_function_scope_qualified_name_map,
and this one is local to a dwo file, but I am not 100% sure of that.

Reviewers: clayborg, JDevlieghere

Subscribers: aprantl, lldb-commits

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

llvm-svn: 363528
2019-06-17 07:32:56 +00:00
..
cmake [CMake] Fix generated Xcode-project ignoring output directory setting for LLDB.framework 2019-06-13 17:35:50 +00:00
docs [Docs] Modernize references to macOS 2019-05-30 16:46:22 +00:00
examples Python 3: decode string as utf-8 to avoid type mismatch. 2019-06-14 15:39:14 +00:00
include/lldb Make UniqueCStringMap work with non-default-constructible types and other improvements/cleanups 2019-06-14 06:33:31 +00:00
lit DWARF: Don't create lldb CompileUnits for DWARF type units 2019-06-13 11:22:47 +00:00
lldb.xcodeproj Update AuxVector.cpp 2019-06-11 21:20:34 +00:00
lldb.xcworkspace Remove accidentally commited file in xcshareddata 2019-02-05 23:35:01 +00:00
packages/Python/lldbsuite Skip failing test on older versions of clang. 2019-06-12 21:30:00 +00:00
resources
scripts Make SBDebugger.RunCommandInterpreter callable from Python. 2019-05-15 00:08:55 +00:00
source DWARF: Avoid storing DIERefs in long-lived containers 2019-06-17 07:32:56 +00:00
test [CMake] Folder structure for generated Xcode project to cover more targets 2019-05-28 09:29:05 +00:00
third_party/Python/module [lldb/thirdparty] Remove unneeded files, asked by Jonas. 2019-03-12 20:41:36 +00:00
tools [CMake] Two extra FOLDER properties for debugserver 2019-06-12 14:46:30 +00:00
unittests Implement GetSharedLibraryInfoAddress 2019-06-14 21:15:08 +00:00
utils [CMake] Fix lldb-dotest for single-config generators in standalone builds 2019-06-13 17:35:43 +00:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [CMake] LLDB.framework tools handling 2019-05-29 11:26:06 +00:00
CODE_OWNERS.txt
INSTALL.txt Fix build URL in new LLDB website 2019-05-01 09:55:00 +00:00
LICENSE.TXT
use_lldb_suite_root.py