llvm-project/lldb/tools
Pavel Labath 38870af859 [lldb] Remove FileSpec->CompileUnit inheritance
Summary:
CompileUnit is a complicated class. Having it be implicitly convertible
to a FileSpec makes reasoning about it even harder.

This patch replaces the inheritance by a simple member and an accessor
function. This avoid the need for casting in places where one needed to
force a CompileUnit to be treated as a FileSpec, and does not add much
verbosity elsewhere.

It also fixes a bug where we were wrongly comparing CompileUnit& and a
CompileUnit*, which compiled due to a combination of this inheritance
and the FileSpec*->FileSpec implicit constructor.

Reviewers: teemperor, JDevlieghere, jdoerfert

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D70827
2019-11-29 11:44:45 +01:00
..
argdumper [JSON] Use LLVM's library for argdumper 2019-10-01 17:41:55 +00:00
compact-unwind Add arm64_32 support to lldb, an ILP32 codegen 2019-10-16 19:14:49 +00:00
darwin-debug [CMake] `install-distribution` for LLDB on Darwin 2019-07-10 11:09:29 +00:00
darwin-threads the thread id is easier to read in base16. 2018-03-06 23:33:02 +00:00
debugserver [debugserver] Set arch based on TARGET_TRIPLE 2019-11-20 12:12:47 -08:00
driver [lldb] fix a -Wcast-qual warning 2019-11-26 14:49:16 +01:00
intel-features cli-wrapper-mpxtable.cpp: fix file header 2019-07-25 05:15:50 +00:00
lldb-instr [lldb] [cmake] Support linking against clang-cpp dylib 2019-10-04 12:03:03 +00:00
lldb-mi [LLDB] Remove lldb-mi 2019-07-18 17:06:06 +00:00
lldb-perf/darwin/sketch Remove lldb-perf 2019-07-08 21:38:34 +00:00
lldb-server [Signal] Allow llvm clients to opt into one-shot SIGPIPE handling 2019-11-18 10:27:27 -08:00
lldb-test [lldb] Remove FileSpec->CompileUnit inheritance 2019-11-29 11:44:45 +01:00
lldb-vscode [lldb-vscode] support the completion request 2019-11-15 17:37:55 -08:00
CMakeLists.txt [CMake] Copy over the system debugserver when using LLDB_USE_SYSTEM_DEBUGSERVER 2019-09-24 22:39:04 +00:00