LLVM API Documentation

llvm::DwarfWriter Class Reference

#include <DwarfWriter.h>

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

List of all members.

Public Member Functions

 DwarfWriter ()
virtual ~DwarfWriter ()
void BeginModule (Module *M, MachineModuleInfo *MMI, raw_ostream &OS, AsmPrinter *A, const TargetAsmInfo *T)
void EndModule ()
void BeginFunction (MachineFunction *MF)
void EndFunction (MachineFunction *MF)
unsigned RecordSourceLine (unsigned Line, unsigned Col, DICompileUnit CU)
unsigned RecordRegionStart (GlobalVariable *V)
 RecordRegionStart - Indicate the start of a region.
unsigned RecordRegionEnd (GlobalVariable *V)
 RecordRegionEnd - Indicate the end of a region.
unsigned getRecordSourceLineCount ()
 getRecordSourceLineCount - Count source lines.
void RecordVariable (GlobalVariable *GV, unsigned FrameIndex, const MachineInstr *MI)
bool ShouldEmitDwarfDebug () const
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)

Static Public Attributes

static char ID = 0


Detailed Description

Definition at line 48 of file DwarfWriter.h.


Constructor & Destructor Documentation

DwarfWriter::DwarfWriter (  ) 

DwarfWriter Implementation

Definition at line 29 of file DwarfWriter.cpp.

DwarfWriter::~DwarfWriter (  )  [virtual]

Definition at line 32 of file DwarfWriter.cpp.


Member Function Documentation

void DwarfWriter::BeginModule ( Module *  M,
MachineModuleInfo *  MMI,
raw_ostream &  OS,
AsmPrinter *  A,
const TargetAsmInfo *  T 
)

BeginModule - Emit all Dwarf sections that should come prior to the content.

BeginModule - Emit all Dwarf sections that should come prior to the content.

Definition at line 39 of file DwarfWriter.cpp.

References llvm::DwarfException::BeginModule(), and llvm::DwarfDebug::BeginModule().

Referenced by llvm::AsmPrinter::doInitialization().

void DwarfWriter::EndModule (  ) 

EndModule - Emit all Dwarf sections that should come after the content.

Definition at line 51 of file DwarfWriter.cpp.

References llvm::DwarfDebug::EndModule(), and llvm::DwarfException::EndModule().

Referenced by llvm::AsmPrinter::doFinalization().

void DwarfWriter::BeginFunction ( MachineFunction *  MF  ) 

BeginFunction - Gather pre-function debug information. Assumes being emitted immediately after the function entry point.

BeginFunction - Gather pre-function debug information. Assumes being emitted immediately after the function entry point.

Definition at line 58 of file DwarfWriter.cpp.

References llvm::DwarfDebug::BeginFunction(), and llvm::DwarfException::BeginFunction().

Referenced by llvm::X86ATTAsmPrinter::runOnMachineFunction().

void DwarfWriter::EndFunction ( MachineFunction *  MF  ) 

EndFunction - Gather and emit post-function debug information.

Definition at line 65 of file DwarfWriter.cpp.

References llvm::MachineModuleInfo::EndFunction(), llvm::DwarfException::EndFunction(), llvm::DwarfDebug::EndFunction(), llvm::Dwarf::getMMI(), and MMI.

Referenced by llvm::X86ATTAsmPrinter::runOnMachineFunction().

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

RecordSourceLine - Register a source line with debug info. 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 77 of file DwarfWriter.cpp.

References llvm::DwarfDebug::RecordSourceLine().

Referenced by llvm::AsmPrinter::processDebugLoc().

unsigned DwarfWriter::RecordRegionStart ( GlobalVariable *  V  ) 

RecordRegionStart - Indicate the start of a region.

Definition at line 83 of file DwarfWriter.cpp.

References llvm::DwarfDebug::RecordRegionStart().

unsigned DwarfWriter::RecordRegionEnd ( GlobalVariable *  V  ) 

RecordRegionEnd - Indicate the end of a region.

Definition at line 88 of file DwarfWriter.cpp.

References llvm::DwarfDebug::RecordRegionEnd().

unsigned DwarfWriter::getRecordSourceLineCount (  ) 

getRecordSourceLineCount - Count source lines.

Definition at line 93 of file DwarfWriter.cpp.

References llvm::DwarfDebug::getRecordSourceLineCount().

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

RecordVariable - Indicate the declaration of a local variable.

Definition at line 99 of file DwarfWriter.cpp.

References llvm::DwarfDebug::RecordVariable().

Referenced by llvm::AsmPrinter::printDeclare().

bool DwarfWriter::ShouldEmitDwarfDebug (  )  const

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

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

Definition at line 106 of file DwarfWriter.cpp.

References llvm::DwarfDebug::ShouldEmitDwarfDebug().

Referenced by llvm::AsmPrinter::processDebugLoc().

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

Definition at line 112 of file DwarfWriter.cpp.

References llvm::DwarfDebug::RecordInlinedFnStart().

unsigned DwarfWriter::RecordInlinedFnEnd ( DISubprogram  SP  ) 

RecordInlinedFnEnd - Indicate the end of inlined subroutine.

Definition at line 118 of file DwarfWriter.cpp.

References llvm::DwarfDebug::RecordInlinedFnEnd().

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

RecordVariableScope - Record scope for the variable declared by DeclareMI. DeclareMI must describe TargetInstrInfo::DECLARE.

RecordVariableScope - Record scope for the variable declared by DeclareMI. DeclareMI must describe TargetInstrInfo::DECLARE.

Definition at line 124 of file DwarfWriter.cpp.

References llvm::DwarfDebug::RecordVariableScope().


Member Data Documentation

char DwarfWriter::ID = 0 [static]

Definition at line 59 of file DwarfWriter.h.


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