diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-05-15 07:45:40 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-05-15 07:45:40 +0000 |
| commit | 041f40e5daf35842f67ab40eaa1f29e99727b736 (patch) | |
| tree | 497466f4ca68f6fa3db7ac202553eafaf15fc998 /lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h | |
| parent | 4c1d6ee83dd0bf1cc24d85612a017b70350d9118 (diff) | |
| download | bcm5719-llvm-041f40e5daf35842f67ab40eaa1f29e99727b736.tar.gz bcm5719-llvm-041f40e5daf35842f67ab40eaa1f29e99727b736.zip | |
DWARF: s/CompileUnit/Unit/ in DWARFFormValue
The class has been converted to use DWARFUnit, but a number of uses of
the words compile unit remained. This removes all such references
Get/SetCompileUnit becomes Get/SetUnit, and m_cu becomes m_unit.
llvm-svn: 360754
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h index 4870f663a0f..1495a1c5cf7 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h @@ -54,11 +54,12 @@ public: eValueTypeBlock }; - DWARFFormValue(); - DWARFFormValue(const DWARFUnit *cu); - DWARFFormValue(const DWARFUnit *cu, dw_form_t form); - const DWARFUnit *GetCompileUnit() const { return m_cu; } - void SetCompileUnit(const DWARFUnit *cu) { m_cu = cu; } + DWARFFormValue() = default; + DWARFFormValue(const DWARFUnit *unit) : m_unit(unit) {} + DWARFFormValue(const DWARFUnit *unit, dw_form_t form) + : m_unit(unit), m_form(form) {} + const DWARFUnit *GetUnit() const { return m_unit; } + void SetUnit(const DWARFUnit *unit) { m_unit = unit; } dw_form_t Form() const { return m_form; } dw_form_t& FormRef() { return m_form; } void SetForm(dw_form_t form) { m_form = form; } @@ -84,7 +85,7 @@ public: lldb::offset_t *offset_ptr) const; static bool SkipValue(const dw_form_t form, const lldb_private::DWARFDataExtractor &debug_info_data, - lldb::offset_t *offset_ptr, const DWARFUnit *cu); + lldb::offset_t *offset_ptr, const DWARFUnit *unit); static bool IsBlockForm(const dw_form_t form); static bool IsDataForm(const dw_form_t form); static FixedFormSizes GetFixedFormSizesForAddressSize(uint8_t addr_size); @@ -93,8 +94,8 @@ public: static bool FormIsSupported(dw_form_t form); protected: - const DWARFUnit *m_cu; // Compile unit for this form - dw_form_t m_form; // Form for this value + const DWARFUnit *m_unit = nullptr; // Unit for this form + dw_form_t m_form = 0; // Form for this value ValueType m_value; // Contains all data for the form }; |

