#include "DwarfFile.h"
#include "DwarfCompileUnit.h"
#include "DwarfDebug.h"
#include "DwarfUnit.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/MC/MCStreamer.h"
#include <cstdint>
usingnamespacellvm;
DwarfFile::DwarfFile(AsmPrinter *AP, StringRef Pref, BumpPtrAllocator &DA)
: … { … }
void DwarfFile::addUnit(std::unique_ptr<DwarfCompileUnit> U) { … }
void DwarfFile::emitUnits(bool UseOffsets) { … }
void DwarfFile::emitUnit(DwarfUnit *TheU, bool UseOffsets) { … }
void DwarfFile::computeSizeAndOffsets() { … }
unsigned DwarfFile::computeSizeAndOffsetsForUnit(DwarfUnit *TheU) { … }
unsigned DwarfFile::computeSizeAndOffset(DIE &Die, unsigned Offset) { … }
void DwarfFile::emitAbbrevs(MCSection *Section) { … }
void DwarfFile::emitStrings(MCSection *StrSection, MCSection *OffsetSection,
bool UseRelativeOffsets) { … }
void DwarfFile::addScopeVariable(LexicalScope *LS, DbgVariable *Var) { … }
void DwarfFile::addScopeLabel(LexicalScope *LS, DbgLabel *Label) { … }
std::pair<uint32_t, RangeSpanList *>
DwarfFile::addRange(const DwarfCompileUnit &CU, SmallVector<RangeSpan, 2> R) { … }