LLVM 19.0.0git
Functions
DwarfCompileUnit.cpp File Reference
#include "DwarfCompileUnit.h"
#include "AddressPool.h"
#include "DwarfExpression.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/DIE.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/TargetFrameLowering.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCSection.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCSymbolWasm.h"
#include "llvm/MC/MachineLocation.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include <iterator>
#include <optional>
#include <string>
#include <utility>

Go to the source code of this file.

Functions

static dwarf::Tag GetCompileUnitType (UnitKind Kind, DwarfDebug *DW)
 
static SmallVector< const DIVariable *, 2 > dependencies (DbgVariable *Var)
 Return all DIVariables that appear in count: expressions.
 
static SmallVector< DbgVariable *, 8 > sortLocalVars (SmallVectorImpl< DbgVariable * > &Input)
 Sort local variables so that variables appearing inside of helper expressions come first.
 

Function Documentation

◆ dependencies()

static SmallVector< const DIVariable *, 2 > dependencies ( DbgVariable Var)
static

Return all DIVariables that appear in count: expressions.

Definition at line 974 of file DwarfCompileUnit.cpp.

References llvm::DbgVariable::getType().

Referenced by sortLocalVars().

◆ GetCompileUnitType()

static dwarf::Tag GetCompileUnitType ( UnitKind  Kind,
DwarfDebug DW 
)
static

Definition at line 45 of file DwarfCompileUnit.cpp.

References llvm::DwarfDebug::getDwarfVersion().

◆ sortLocalVars()

static SmallVector< DbgVariable *, 8 > sortLocalVars ( SmallVectorImpl< DbgVariable * > &  Input)
static