#include "llvm/CodeGen/DebugHandlerBase.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/Support/CommandLine.h"
usingnamespacellvm;
#define DEBUG_TYPE …
static cl::opt<bool> TrimVarLocs("trim-var-locs", cl::Hidden, cl::init(true));
std::optional<DbgVariableLocation>
DbgVariableLocation::extractFromMachineInstruction(
const MachineInstr &Instruction) { … }
DebugHandlerBase::DebugHandlerBase(AsmPrinter *A) : … { … }
DebugHandlerBase::~DebugHandlerBase() = default;
void DebugHandlerBase::beginModule(Module *M) { … }
void DebugHandlerBase::identifyScopeMarkers() { … }
MCSymbol *DebugHandlerBase::getLabelBeforeInsn(const MachineInstr *MI) { … }
MCSymbol *DebugHandlerBase::getLabelAfterInsn(const MachineInstr *MI) { … }
uint64_t DebugHandlerBase::getBaseTypeSize(const DIType *Ty) { … }
bool DebugHandlerBase::isUnsignedDIType(const DIType *Ty) { … }
static bool hasDebugInfo(const MachineFunction *MF) { … }
void DebugHandlerBase::beginFunction(const MachineFunction *MF) { … }
void DebugHandlerBase::beginInstruction(const MachineInstr *MI) { … }
void DebugHandlerBase::endInstruction() { … }
void DebugHandlerBase::endFunction(const MachineFunction *MF) { … }
void DebugHandlerBase::beginBasicBlockSection(const MachineBasicBlock &MBB) { … }
void DebugHandlerBase::endBasicBlockSection(const MachineBasicBlock &MBB) { … }