diff options
| author | Zachary Turner <zturner@google.com> | 2019-01-11 18:03:20 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2019-01-11 18:03:20 +0000 |
| commit | 863f8c18b9272021d9fa37b3f5ff83debb0002a3 (patch) | |
| tree | b3a7f25c3f8fd3f35bf1418638f53e91cc99fc02 /lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h | |
| parent | 3a50a9fe74468ea376e59f81131a873fb1b4d7d7 (diff) | |
| download | bcm5719-llvm-863f8c18b9272021d9fa37b3f5ff83debb0002a3.tar.gz bcm5719-llvm-863f8c18b9272021d9fa37b3f5ff83debb0002a3.zip | |
[SymbolFile] Make ParseCompileUnitXXX accept a CompileUnit&.
Previously all of these functions accepted a SymbolContext&.
While a CompileUnit is one member of a SymbolContext, there
are also many others, and by passing such a monolithic parameter
in this way it makes the requirements and assumptions of the
API unclear for both callers as well as implementors.
All these methods need is a CompileUnit. By limiting the
parameter type in this way, we simplify the code as well as
make it self-documenting for both implementers and users.
Differential Revision: https://reviews.llvm.org/D56564
llvm-svn: 350943
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h index ca28023e45f..d12313aa380 100644 --- a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h +++ b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h @@ -82,16 +82,18 @@ public: lldb::CompUnitSP ParseCompileUnitAtIndex(uint32_t index) override; - lldb::LanguageType ParseCompileUnitLanguage(const SymbolContext &sc) override; + lldb::LanguageType + ParseLanguage(lldb_private::CompileUnit &comp_unit) override; - size_t ParseCompileUnitFunctions(const SymbolContext &sc) override; + size_t ParseFunctions(lldb_private::CompileUnit &comp_unit) override; - bool ParseCompileUnitLineTable(const SymbolContext &sc) override; + bool ParseLineTable(lldb_private::CompileUnit &comp_unit) override; - bool ParseCompileUnitDebugMacros(const SymbolContext &sc) override; + bool ParseDebugMacros(lldb_private::CompileUnit &comp_unit) override; - bool ParseCompileUnitSupportFiles(const SymbolContext &sc, - FileSpecList &support_files) override; + bool ParseSupportFiles(lldb_private::CompileUnit &comp_unit, + FileSpecList &support_files) override; + size_t ParseTypes(lldb_private::CompileUnit &comp_unit) override; bool ParseImportedModules(const SymbolContext &sc, @@ -104,8 +106,6 @@ public: uint32_t max_matches, VariableList &variables) override; - size_t - ParseTypesForCompileUnit(lldb_private::CompileUnit &comp_unit) override; size_t ParseVariablesForContext(const SymbolContext &sc) override; void AddSymbols(Symtab &symtab) override; |

