llvm-project/lldb/include/lldb
Pavel Labath d8aca8886f Make UniqueCStringMap work with non-default-constructible types and other improvements/cleanups
Summary:
The motivation for this was me wanting to make the validity of dwarf
DIERefs explicit (via llvm::Optional<DIERef>). This meant that the class
would no longer have a default constructor. As the DIERef was being
stored in a UniqueCStringMap, this meant that this container (like all
standard containers) needed to work with non-default-constructible types
too.

This part is achieved by removing the default constructors for the map
entry types, and providing appropriate comparison overloads so that we
can search for map entries without constructing a dummy entry. While
doing that, I took the opportunity to modernize the code, and add some
tests. Functions that were completely unused are deleted.

This required also some changes in the Symtab code, as it was default
constructing map entries, which was not impossible even though its
value type was default-constructible. Technically, these changes could
be avoided with some SFINAE on the entry type, but I felt that the code
is cleaner this way anyway.

Reviewers: JDevlieghere, sgraenitz

Subscribers: mgorny, aprantl, lldb-commits

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

llvm-svn: 363357
2019-06-14 06:33:31 +00:00
..
API Fix file names in file headers. NFC 2019-05-13 04:42:32 +00:00
Breakpoint [lldb] NFC modernize codebase with modernize-use-nullptr 2019-05-23 11:14:47 +00:00
Core Make UniqueCStringMap work with non-default-constructible types and other improvements/cleanups 2019-06-14 06:33:31 +00:00
DataFormatters Delete unnecessary copy ctors/copy assignment operators 2019-05-15 11:23:54 +00:00
Expression [Expression] Add PersistentExpressionState::GetCompilerTypeFromPersistentDecl 2019-06-12 17:47:06 +00:00
Host Add support to read aux vector values 2019-06-11 20:16:13 +00:00
Initialization [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
Interpreter Remove unused const version of CommandInterpreter::GetCommandHistory. 2019-05-23 01:40:33 +00:00
Symbol Make UniqueCStringMap work with non-default-constructible types and other improvements/cleanups 2019-06-14 06:33:31 +00:00
Target [LanguageRuntime] Simplify CreateExceptionSearchFilter in derived classes 2019-06-11 22:52:08 +00:00
Utility Fixed typos in Log.h 2019-06-14 06:06:47 +00:00
lldb-defines.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
lldb-enumerations.h Recognise debug_types.dwo as a debug info section 2019-06-12 11:42:42 +00:00
lldb-forward.h [Target] Remove Process::GetObjCLanguageRuntime 2019-06-10 20:53:23 +00:00
lldb-private-defines.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lldb-private-enumerations.h typedef enum -> enum 2019-05-14 08:55:50 +00:00
lldb-private-forward.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
lldb-private-interfaces.h [ScriptInterpreter] Pass the debugger instead of the command interpreter 2019-04-26 17:58:19 +00:00
lldb-private-types.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
lldb-private.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lldb-public.h Fix file names in file headers. NFC 2019-05-13 04:42:32 +00:00
lldb-types.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
lldb-versioning.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
module.modulemap [Reproducers] Make ReproducerInstrumentation a textual header 2019-03-11 23:09:09 +00:00