diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/llvm12/include/llvm/DebugInfo/DWARF/DWARFUnit.h | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/DebugInfo/DWARF/DWARFUnit.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/DebugInfo/DWARF/DWARFUnit.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/libs/llvm12/include/llvm/DebugInfo/DWARF/DWARFUnit.h b/contrib/libs/llvm12/include/llvm/DebugInfo/DWARF/DWARFUnit.h index e8d37922b7..e519fa7185 100644 --- a/contrib/libs/llvm12/include/llvm/DebugInfo/DWARF/DWARFUnit.h +++ b/contrib/libs/llvm12/include/llvm/DebugInfo/DWARF/DWARFUnit.h @@ -120,8 +120,8 @@ public: const DWARFUnitIndex &getDWARFUnitIndex(DWARFContext &Context, DWARFSectionKind Kind); -bool isCompileUnit(const std::unique_ptr<DWARFUnit> &U); - +bool isCompileUnit(const std::unique_ptr<DWARFUnit> &U); + /// Describe a collection of units. Intended to hold all units either from /// .debug_info and .debug_types, or from .debug_info.dwo and .debug_types.dwo. class DWARFUnitVector final : public SmallVector<std::unique_ptr<DWARFUnit>, 1> { @@ -136,9 +136,9 @@ public: using iterator = typename UnitVector::iterator; using iterator_range = llvm::iterator_range<typename UnitVector::iterator>; - using compile_unit_range = - decltype(make_filter_range(std::declval<iterator_range>(), isCompileUnit)); - + using compile_unit_range = + decltype(make_filter_range(std::declval<iterator_range>(), isCompileUnit)); + DWARFUnit *getUnitForOffset(uint64_t Offset) const; DWARFUnit *getUnitForIndexEntry(const DWARFUnitIndex::Entry &E); @@ -301,7 +301,7 @@ public: dwarf::DwarfFormat getFormat() const { return Header.getFormat(); } uint8_t getUnitType() const { return Header.getUnitType(); } bool isTypeUnit() const { return Header.isTypeUnit(); } - uint64_t getAbbrOffset() const { return Header.getAbbrOffset(); } + uint64_t getAbbrOffset() const { return Header.getAbbrOffset(); } uint64_t getNextUnitOffset() const { return Header.getNextUnitOffset(); } const DWARFSection &getLineSection() const { return LineSection; } StringRef getStringSection() const { return StringSection; } @@ -415,10 +415,10 @@ public: /// Return a rangelist's offset based on an index. The index designates /// an entry in the rangelist table's offset array and is supplied by /// DW_FORM_rnglistx. - Optional<uint64_t> getRnglistOffset(uint32_t Index); - - Optional<uint64_t> getLoclistOffset(uint32_t Index); + Optional<uint64_t> getRnglistOffset(uint32_t Index); + Optional<uint64_t> getLoclistOffset(uint32_t Index); + Expected<DWARFAddressRangesVector> collectAddressRanges(); Expected<DWARFLocationExpressionsVector> @@ -521,10 +521,10 @@ private: bool parseDWO(); }; -inline bool isCompileUnit(const std::unique_ptr<DWARFUnit> &U) { - return !U->isTypeUnit(); -} - +inline bool isCompileUnit(const std::unique_ptr<DWARFUnit> &U) { + return !U->isTypeUnit(); +} + } // end namespace llvm #endif // LLVM_DEBUGINFO_DWARF_DWARFUNIT_H |