llvm-project/lldb/source/Plugins/SymbolFile/DWARF
Zachary Turner ac0d41c760 Change SymbolFile::ParseTypes to ParseTypesForCompileUnit.
The function SymbolFile::ParseTypes previously accepted a SymbolContext.
This makes it extremely difficult to implement faithfully, because you
have to account for all possible combinations of members being set in
the SymbolContext. On the other hand, no clients of this function
actually care about implementing this function to this strict of a
standard. AFAICT, there is actually only 1 client in the entire
codebase, and it is the function ParseAllDebugSymbols, which is itself
only called for testing purposes when dumping information. At this
call-site, the only field it sets is the CompileUnit, meaning that an
implementer of a SymbolFile need not worry about any examining or
handling any other fields which might be set.

By restricting this API to accept exactly a CompileUnit& and nothing
more, we can simplify the life of new SymbolFile plugin implementers by
making it clear exactly what the necessary and sufficient set of
functionality they need to implement is, while at the same time removing
some dead code that tried to handle other types of SymbolContext fields
that were never going to be set anyway.

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

llvm-svn: 350889
2019-01-10 20:57:50 +00:00
..
AppleDWARFIndex.cpp DebugNamesDWARFIndex: Implement GetFunctions method 2018-06-08 09:10:31 +00:00
AppleDWARFIndex.h DebugNamesDWARFIndex: Add ability to lookup variables 2018-06-07 10:04:44 +00:00
CMakeLists.txt Remove OCaml debugger plugin 2018-11-05 19:34:03 +00:00
DIERef.cpp DIERef: move trivial constructors into the header 2018-06-07 14:03:30 +00:00
DIERef.h DebugNamesDWARFIndex: Implement GetFunctions method 2018-06-08 09:10:31 +00:00
DWARFASTParser.h Fix (and improve) the support for C99 variable length array types 2018-11-05 20:49:07 +00:00
DWARFASTParserClang.cpp Convert to LLDB coding style (NFC) 2019-01-08 20:48:40 +00:00
DWARFASTParserClang.h Remove header grouping comments. 2018-11-11 23:17:06 +00:00
DWARFAbbreviationDeclaration.cpp [LLDB] - Add support for DW_FORM_implicit_const. 2018-10-12 09:46:15 +00:00
DWARFAbbreviationDeclaration.h [LLDB] - Add support for DW_FORM_implicit_const. 2018-10-12 09:46:15 +00:00
DWARFAttribute.cpp [LLDB] - Add support for DW_FORM_implicit_const. 2018-10-12 09:46:15 +00:00
DWARFAttribute.h [LLDB] - Add support for DW_FORM_implicit_const. 2018-10-12 09:46:15 +00:00
DWARFBaseDIE.cpp DWARFDIE split out to DWARFBaseDIE 2018-05-24 20:44:48 +00:00
DWARFBaseDIE.h DWARFDIE split out to DWARFBaseDIE 2018-05-24 20:44:48 +00:00
DWARFCompileUnit.cpp [LLDB] - Improved DWARF5 support. 2018-09-13 17:06:47 +00:00
DWARFCompileUnit.h [LLDB] - Improved DWARF5 support. 2018-09-13 17:06:47 +00:00
DWARFDIE.cpp Rename DWARFDIE::GetDWOContext() -> GetDeclContext() (NFC) 2019-01-07 22:47:17 +00:00
DWARFDIE.h Rename DWARFDIE::GetDWOContext() -> GetDeclContext() (NFC) 2019-01-07 22:47:17 +00:00
DWARFDIECollection.cpp Move classes from Core -> Utility. 2017-02-02 21:39:50 +00:00
DWARFDIECollection.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DWARFDataExtractor.cpp General cleanup to minimize the .debug_types patch 2018-05-09 16:42:53 +00:00
DWARFDataExtractor.h Remove header grouping comments. 2018-11-11 23:17:06 +00:00
DWARFDebugAbbrev.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
DWARFDebugAbbrev.h Fix LLDB crash accessing unknown DW_FORM_* attributes 2017-07-31 17:02:52 +00:00
DWARFDebugArangeSet.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
DWARFDebugArangeSet.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DWARFDebugAranges.cpp Move the codebase to use: DWARFCompileUnit -> DWARFUnit 2018-03-18 20:11:02 +00:00
DWARFDebugAranges.h RangeMap.h: merge RangeDataArray and RangeDataVector 2019-01-04 07:14:17 +00:00
DWARFDebugInfo.cpp General cleanup to minimize the .debug_types patch 2018-05-09 16:42:53 +00:00
DWARFDebugInfo.h General cleanup to minimize the .debug_types patch 2018-05-09 16:42:53 +00:00
DWARFDebugInfoEntry.cpp [LLDB] - Add support for DW_FORM_rnglistx and relative DW_RLE_* entries. 2018-11-02 09:03:25 +00:00
DWARFDebugInfoEntry.h Code cleanup: Remove DWARFDebugInfoEntry::m_empty_children 2018-10-16 20:49:15 +00:00
DWARFDebugLine.cpp [FileSystem] Move path resolution logic out of FileSpec 2018-11-01 21:05:36 +00:00
DWARFDebugLine.h [LLDB] - Improved DWARF5 support. 2018-09-13 17:06:47 +00:00
DWARFDebugMacinfo.cpp Move classes from Core -> Utility. 2017-02-02 21:39:50 +00:00
DWARFDebugMacinfo.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DWARFDebugMacinfoEntry.cpp Move classes from Core -> Utility. 2017-02-02 21:39:50 +00:00
DWARFDebugMacinfoEntry.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DWARFDebugMacro.cpp Simplify Boolean expressions 2018-12-15 00:15:33 +00:00
DWARFDebugMacro.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DWARFDebugRanges.cpp [LLDB] - Add support for DW_FORM_rnglistx and relative DW_RLE_* entries. 2018-11-02 09:03:25 +00:00
DWARFDebugRanges.h [LLDB] - Add support for DW_FORM_rnglistx and relative DW_RLE_* entries. 2018-11-02 09:03:25 +00:00
DWARFDeclContext.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
DWARFDeclContext.h Remove header grouping comments. 2018-11-11 23:17:06 +00:00
DWARFDefines.cpp Update CallFrameString API to account for r349472 2018-12-18 10:39:19 +00:00
DWARFDefines.h Fix typo in r349473 2018-12-18 11:05:43 +00:00
DWARFFormValue.cpp DWARF: Fix a bug in array size computation 2018-12-27 09:25:34 +00:00
DWARFFormValue.h Remove comments after header includes. 2018-11-11 23:16:43 +00:00
DWARFIndex.cpp DebugNamesDWARFIndex: Implement GetFunctions method 2018-06-08 09:10:31 +00:00
DWARFIndex.h DebugNamesDWARFIndex: Implement GetFunctions method 2018-06-08 09:10:31 +00:00
DWARFUnit.cpp [DWARFUnit] Remove commented out code. NFCI. 2018-12-31 18:45:30 +00:00
DWARFUnit.h [LLDB] - Improve the support of .debug_str_offsets/.debug_str_offsets.dwo 2018-11-29 12:44:10 +00:00
DebugNamesDWARFIndex.cpp [LLDB] - Improved DWARF5 support. 2018-09-13 17:06:47 +00:00
DebugNamesDWARFIndex.h [SymbolFile] Implement GetCompleteObjCClass for .debug_names 2018-06-27 19:58:39 +00:00
HashedNameToDIE.cpp DWARF: Fix a bug in array size computation 2018-12-27 09:25:34 +00:00
HashedNameToDIE.h [DWARF] Have HashedNameToDIE store a DataExtractor by value 2018-05-17 11:36:08 +00:00
LogChannelDWARF.cpp Remove lldb streams from the Log class completely 2017-03-15 09:06:58 +00:00
LogChannelDWARF.h Remove header grouping comments. 2018-11-11 23:17:06 +00:00
ManualDWARFIndex.cpp Fix/unify the spelling of Objective-C. 2018-06-13 16:21:24 +00:00
ManualDWARFIndex.h DebugNamesDWARFIndex: Add support for partial indexes 2018-06-07 10:35:28 +00:00
NameToDIE.cpp Clean up #include "DWARFCompileUnit.h" 2018-01-21 18:03:17 +00:00
NameToDIE.h Change UniqueCStringMap to use ConstString as the key 2017-05-02 10:17:30 +00:00
SymbolFileDWARF.cpp Change SymbolFile::ParseTypes to ParseTypesForCompileUnit. 2019-01-10 20:57:50 +00:00
SymbolFileDWARF.h Change SymbolFile::ParseTypes to ParseTypesForCompileUnit. 2019-01-10 20:57:50 +00:00
SymbolFileDWARFDebugMap.cpp Change SymbolFile::ParseTypes to ParseTypesForCompileUnit. 2019-01-10 20:57:50 +00:00
SymbolFileDWARFDebugMap.h Change SymbolFile::ParseTypes to ParseTypesForCompileUnit. 2019-01-10 20:57:50 +00:00
SymbolFileDWARFDwo.cpp [LLDB] - Recommit r346848 "[LLDB] - Support the single file split DWARF.". 2018-11-14 13:01:15 +00:00
SymbolFileDWARFDwo.h [LLDB] - Recommit r346848 "[LLDB] - Support the single file split DWARF.". 2018-11-14 13:01:15 +00:00
SymbolFileDWARFDwoDwp.cpp Move the codebase to use: DWARFCompileUnit -> DWARFUnit 2018-03-18 20:11:02 +00:00
SymbolFileDWARFDwoDwp.h Remove header grouping comments. 2018-11-11 23:17:06 +00:00
SymbolFileDWARFDwp.cpp Remove header grouping comments. 2018-11-11 23:17:06 +00:00
SymbolFileDWARFDwp.h Remove header grouping comments. 2018-11-11 23:17:06 +00:00
UniqueDWARFASTType.cpp Remove header grouping comments. 2018-11-11 23:17:06 +00:00
UniqueDWARFASTType.h Remove header grouping comments. 2018-11-11 23:17:06 +00:00