Path: blob/main/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFDataExtractor.h
39645 views
//===-- DWARFDataExtractor.h ------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDATAEXTRACTOR_H9#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDATAEXTRACTOR_H1011#include "lldb/Core/dwarf.h"12#include "lldb/Utility/DataExtractor.h"13#include "llvm/DebugInfo/DWARF/DWARFDataExtractor.h"1415namespace lldb_private {1617class DWARFDataExtractor : public DataExtractor {18public:19DWARFDataExtractor() = default;2021DWARFDataExtractor(const DWARFDataExtractor &data, lldb::offset_t offset,22lldb::offset_t length)23: DataExtractor(data, offset, length) {}2425uint64_t GetDWARFInitialLength(lldb::offset_t *offset_ptr) const;2627dw_offset_t GetDWARFOffset(lldb::offset_t *offset_ptr) const;2829size_t GetDWARFSizeofInitialLength() const { return 4; }30size_t GetDWARFSizeOfOffset() const { return 4; }3132llvm::DWARFDataExtractor GetAsLLVMDWARF() const;33llvm::DataExtractor GetAsLLVM() const;34};35} // namespace lldb_private3637#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDATAEXTRACTOR_H383940