llvm/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp

//===- llvm/CodeGen/DwarfFile.cpp - Dwarf Debug Framework -----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#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) {}

// Emit the various dwarf units to the unit section USection with
// the abbreviations going into ASection.
void DwarfFile::emitUnits(bool UseOffsets) {}

void DwarfFile::emitUnit(DwarfUnit *TheU, bool UseOffsets) {}

// Compute the size and offset for each DIE.
void DwarfFile::computeSizeAndOffsets() {}

unsigned DwarfFile::computeSizeAndOffsetsForUnit(DwarfUnit *TheU) {}

// Compute the size and offset of a DIE. The offset is relative to start of the
// CU. It returns the offset after laying out the DIE.
unsigned DwarfFile::computeSizeAndOffset(DIE &Die, unsigned Offset) {}

void DwarfFile::emitAbbrevs(MCSection *Section) {}

// Emit strings into a string 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) {}