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)
bool ValidDebugInfo (Value *V)
 ValidDebugInfo - Return true if V represents valid debug info value.
unsigned RecordSourceLine (unsigned Line, unsigned Col, unsigned Src)
unsigned RecordSource (const std::string &Dir, const std::string &File)
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)

Static Public Attributes

static char ID = 0


Detailed Description

Definition at line 42 of file DwarfWriter.h.


Constructor & Destructor Documentation

llvm::DwarfWriter::DwarfWriter (  ) 

virtual llvm::DwarfWriter::~DwarfWriter (  )  [virtual]


Member Function Documentation

void llvm::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.

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

void llvm::DwarfWriter::EndModule (  ) 

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

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

void llvm::DwarfWriter::BeginFunction ( MachineFunction *  MF  ) 

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

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

void llvm::DwarfWriter::EndFunction ( MachineFunction *  MF  ) 

EndFunction - Gather and emit post-function debug information.

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

bool llvm::DwarfWriter::ValidDebugInfo ( Value *  V  ) 

ValidDebugInfo - Return true if V represents valid debug info value.

Referenced by llvm::FunctionLoweringInfo::set().

unsigned llvm::DwarfWriter::RecordSourceLine ( unsigned  Line,
unsigned  Col,
unsigned  Src 
)

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.

unsigned llvm::DwarfWriter::RecordSource ( const std::string &  Dir,
const std::string &  File 
)

RecordSource - Register a source file with debug info. Returns an source ID.

Referenced by llvm::FunctionLoweringInfo::set().

unsigned llvm::DwarfWriter::RecordRegionStart ( GlobalVariable *  V  ) 

RecordRegionStart - Indicate the start of a region.

unsigned llvm::DwarfWriter::RecordRegionEnd ( GlobalVariable *  V  ) 

RecordRegionEnd - Indicate the end of a region.

unsigned llvm::DwarfWriter::getRecordSourceLineCount (  ) 

getRecordSourceLineCount - Count source lines.

void llvm::DwarfWriter::RecordVariable ( GlobalVariable *  GV,
unsigned  FrameIndex 
)

RecordVariable - Indicate the declaration of a local variable.

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


Member Data Documentation

char DwarfWriter::ID = 0 [static]

Definition at line 53 of file DwarfWriter.h.


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