LLVM API Documentation

llvm::DwarfDebug Class Reference

#include <DwarfDebug.h>

Inheritance diagram for llvm::DwarfDebug:
[legend]
Collaboration diagram for llvm::DwarfDebug:
[legend]

List of all members.

Public Member Functions

 DwarfDebug (raw_ostream &OS, AsmPrinter *A, const TargetAsmInfo *T)
virtual ~DwarfDebug ()
bool ShouldEmitDwarfDebug () const
void BeginModule (Module *M, MachineModuleInfo *MMI)
void EndModule ()
void BeginFunction (MachineFunction *MF)
void EndFunction (MachineFunction *MF)
unsigned RecordSourceLine (Value *V, unsigned Line, unsigned Col)
unsigned RecordSourceLine (unsigned Line, unsigned Col, DICompileUnit CU)
unsigned getRecordSourceLineCount () const
unsigned getOrCreateSourceID (const std::string &DirName, const std::string &FileName)
unsigned RecordRegionStart (GlobalVariable *V)
 RecordRegionStart - Indicate the start of a region.
unsigned RecordRegionEnd (GlobalVariable *V)
 RecordRegionEnd - Indicate the end of a region.
void RecordVariable (GlobalVariable *GV, unsigned FrameIndex, const MachineInstr *MI)
 RecordVariable - Indicate the declaration of a local variable.
unsigned RecordInlinedFnStart (DISubprogram &SP, DICompileUnit CU, unsigned Line, unsigned Col)
unsigned RecordInlinedFnEnd (DISubprogram &SP)
 RecordInlinedFnEnd - Indicate the end of inlined subroutine.
void RecordVariableScope (DIVariable &DV, const MachineInstr *DeclareMI)

Classes

struct  FunctionDebugFrameInfo


Detailed Description

Definition at line 60 of file DwarfDebug.h.


Constructor & Destructor Documentation

DwarfDebug::DwarfDebug ( raw_ostream &  OS,
AsmPrinter *  A,
const TargetAsmInfo *  T 
)

Definition at line 227 of file DwarfDebug.cpp.

References getDwarfTimerGroup(), and llvm::TimePassesIsEnabled.

DwarfDebug::~DwarfDebug (  )  [virtual]

Definition at line 237 of file DwarfDebug.cpp.

References E, and llvm::Dwarf::M.


Member Function Documentation

bool llvm::DwarfDebug::ShouldEmitDwarfDebug (  )  const [inline]

ShouldEmitDwarfDebug - Returns true if Dwarf debugging declarations should be emitted.

Definition at line 470 of file DwarfDebug.h.

Referenced by BeginFunction(), EndFunction(), EndModule(), and llvm::DwarfWriter::ShouldEmitDwarfDebug().

void DwarfDebug::BeginModule ( Module *  M,
MachineModuleInfo *  mmi 
)

void DwarfDebug::EndModule (  ) 

void DwarfDebug::BeginFunction ( MachineFunction *  MF  ) 

void DwarfDebug::EndFunction ( MachineFunction *  MF  ) 

unsigned DwarfDebug::RecordSourceLine ( Value *  V,
unsigned  Line,
unsigned  Col 
)

RecordSourceLine - Records location information and associates it with a label. Returns a unique label ID used to generate a label and provide correspondence to the source line list.

RecordSourceLine - Records location information and associates it with a label. Returns a unique label ID used to generate a label and provide correspondence to the source line list.

Definition at line 1521 of file DwarfDebug.cpp.

References llvm::CompileUnit::getID(), llvm::Dwarf::MMI, llvm::MachineModuleInfo::NextLabelID(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.

Referenced by BeginFunction(), and llvm::DwarfWriter::RecordSourceLine().

unsigned DwarfDebug::RecordSourceLine ( unsigned  Line,
unsigned  Col,
DICompileUnit  CU 
)

RecordSourceLine - Records location information and associates it with a label. Returns a unique label ID used to generate a label and provide correspondence to the source line list.

RecordSourceLine - Records location information and associates it with a label. Returns a unique label ID used to generate a label and provide correspondence to the source line list.

Definition at line 1539 of file DwarfDebug.cpp.

References llvm::DICompileUnit::getDirectory(), llvm::DICompileUnit::getFilename(), llvm::Dwarf::MMI, llvm::MachineModuleInfo::NextLabelID(), Src, llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.

unsigned llvm::DwarfDebug::getRecordSourceLineCount (  )  const [inline]

getRecordSourceLineCount - Return the number of source lines in the debug info.

Definition at line 500 of file DwarfDebug.h.

Referenced by llvm::DwarfWriter::getRecordSourceLineCount().

unsigned DwarfDebug::getOrCreateSourceID ( const std::string &  DirName,
const std::string &  FileName 
)

getOrCreateSourceID - Public version of GetOrCreateSourceID. This can be timed. Look up the source id with the given directory and source file names. If none currently exists, create a new id and insert it in the SourceIds map. This can update DirectoryNames and SourceFileNames maps as well.

getOrCreateSourceID - Public version of GetOrCreateSourceID. This can be timed. Look up the source id with the given directory and source file names. If none currently exists, create a new id and insert it in the SourceIds map. This can update DirectoryNames and SourceFileNames maps as well.

Definition at line 1561 of file DwarfDebug.cpp.

References llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.

unsigned DwarfDebug::RecordRegionStart ( GlobalVariable *  V  ) 

unsigned DwarfDebug::RecordRegionEnd ( GlobalVariable *  V  ) 

void DwarfDebug::RecordVariable ( GlobalVariable *  GV,
unsigned  FrameIndex,
const MachineInstr *  MI 
)

RecordVariable - Indicate the declaration of a local variable.

RecordVariable - Indicate the declaration of a local variable.

Definition at line 1612 of file DwarfDebug.cpp.

References llvm::DbgScope::AddVariable(), llvm::dwarf::DW_TAG_variable, llvm::DIVariable::getContext(), llvm::DIGlobal::getContext(), llvm::DIDescriptor::getGV(), llvm::DIDescriptor::getTag(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.

Referenced by llvm::DwarfWriter::RecordVariable().

unsigned DwarfDebug::RecordInlinedFnStart ( DISubprogram &  SP,
DICompileUnit  CU,
unsigned  Line,
unsigned  Col 
)

unsigned DwarfDebug::RecordInlinedFnEnd ( DISubprogram &  SP  ) 

void DwarfDebug::RecordVariableScope ( DIVariable &  DV,
const MachineInstr *  DeclareMI 
)

RecordVariableScope - Record scope for the variable declared by DeclareMI. DeclareMI must describe TargetInstrInfo::DECLARE. Record scopes for only inlined subroutine variables. Other variables's scopes are determined during RecordVariable().

RecordVariableScope - Record scope for the variable declared by DeclareMI. DeclareMI must describe TargetInstrInfo::DECLARE. Record scopes for only inlined subroutine variables. Other variables's scopes are determined during RecordVariable().

Definition at line 1775 of file DwarfDebug.cpp.

References llvm::DIVariable::getContext(), llvm::DIDescriptor::getGV(), if(), llvm::DIDescriptor::isNull(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.

Referenced by llvm::DwarfWriter::RecordVariableScope().


The documentation for this class was generated from the following files: