#include "llvm/DebugInfo/DWARF/DWARFUnitIndex.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DataExtractor.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/raw_ostream.h"
#include <cinttypes>
#include <cstdint>
usingnamespacellvm;
namespace {
enum class DWARFSectionKindV2 { … };
}
constexpr bool isKnownV5SectionID(uint32_t ID) { … }
uint32_t llvm::serializeSectionKind(DWARFSectionKind Kind,
unsigned IndexVersion) { … }
DWARFSectionKind llvm::deserializeSectionKind(uint32_t Value,
unsigned IndexVersion) { … }
bool DWARFUnitIndex::Header::parse(DataExtractor IndexData,
uint64_t *OffsetPtr) { … }
void DWARFUnitIndex::Header::dump(raw_ostream &OS) const { … }
bool DWARFUnitIndex::parse(DataExtractor IndexData) { … }
bool DWARFUnitIndex::parseImpl(DataExtractor IndexData) { … }
StringRef DWARFUnitIndex::getColumnHeader(DWARFSectionKind DS) { … }
void DWARFUnitIndex::dump(raw_ostream &OS) const { … }
const DWARFUnitIndex::Entry::SectionContribution *
DWARFUnitIndex::Entry::getContribution(DWARFSectionKind Sec) const { … }
DWARFUnitIndex::Entry::SectionContribution &
DWARFUnitIndex::Entry::getContribution() { … }
const DWARFUnitIndex::Entry::SectionContribution *
DWARFUnitIndex::Entry::getContribution() const { … }
const DWARFUnitIndex::Entry *
DWARFUnitIndex::getFromOffset(uint64_t Offset) const { … }
const DWARFUnitIndex::Entry *DWARFUnitIndex::getFromHash(uint64_t S) const { … }