LLVM API Documentation

llvm::CompileUnitDesc Class Reference

#include <MachineDebugInfo.h>

Inheritance diagram for llvm::CompileUnitDesc:

Inheritance graph
[legend]
Collaboration diagram for llvm::CompileUnitDesc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CompileUnitDesc ()
unsigned getDebugVersion () const
unsigned getLanguage () const
const std::string & getFileName () const
const std::string & getDirectory () const
const std::string & getProducer () const
void setLanguage (unsigned L)
void setFileName (const std::string &FN)
void setDirectory (const std::string &D)
void setProducer (const std::string &P)
virtual void ApplyToFields (DIVisitor *Visitor)
virtual const char * getDescString () const
virtual const char * getTypeString () const
virtual const char * getAnchorString () const
virtual void dump ()

Static Public Member Functions

static bool classof (const CompileUnitDesc *)
static bool classof (const DebugInfoDesc *D)
static unsigned DebugVersionFromGlobal (GlobalVariable *GV)

Static Public Attributes

static const char * AnchorString = "llvm.dbg.compile_units"

Detailed Description

CompileUnitDesc - This class packages debug information associated with a source/header file.

Definition at line 217 of file MachineDebugInfo.h.


Constructor & Destructor Documentation

CompileUnitDesc::CompileUnitDesc (  ) 

Definition at line 590 of file MachineDebugInfo.cpp.


Member Function Documentation

void CompileUnitDesc::ApplyToFields ( DIVisitor Visitor  )  [virtual]

ApplyToFields - Target the visitor to the fields of the CompileUnitDesc.

Reimplemented from llvm::AnchoredDesc.

Definition at line 613 of file MachineDebugInfo.cpp.

References llvm::DIVisitor::Apply(), and llvm::AnchoredDesc::ApplyToFields().

bool CompileUnitDesc::classof ( const DebugInfoDesc D  )  [static]

Reimplemented from llvm::DebugInfoDesc.

Definition at line 600 of file MachineDebugInfo.cpp.

References D, and llvm::dwarf::DW_TAG_compile_unit.

static bool llvm::CompileUnitDesc::classof ( const CompileUnitDesc  )  [inline, static]

Definition at line 243 of file MachineDebugInfo.h.

unsigned CompileUnitDesc::DebugVersionFromGlobal ( GlobalVariable GV  )  [static]

DebugVersionFromGlobal - Returns the version number from a compile unit GlobalVariable. Return DIIValid if operand is not an unsigned int.

Definition at line 606 of file MachineDebugInfo.cpp.

References llvm::CallingConv::C, llvm::dwarf::DW_TAG_invalid, getUIntOperand(), and GV.

Referenced by llvm::DIDeserializer::Deserialize(), llvm::MachineDebugInfo::getAnchoredDescriptors(), and llvm::DIVerifier::Verify().

void CompileUnitDesc::dump (  )  [virtual]

Implements llvm::DebugInfoDesc.

Definition at line 643 of file MachineDebugInfo.cpp.

References llvm::AnchoredDesc::getAnchor(), getDescString(), and llvm::DebugInfoDesc::getTag().

const char * CompileUnitDesc::getAnchorString (  )  const [virtual]

getAnchorString - Return a string used to label descriptor's anchor.

Implements llvm::AnchoredDesc.

Definition at line 638 of file MachineDebugInfo.cpp.

References AnchorString.

unsigned llvm::CompileUnitDesc::getDebugVersion (  )  const [inline]

Definition at line 230 of file MachineDebugInfo.h.

const char * CompileUnitDesc::getDescString (  )  const [virtual]

getDescString - Return a string used to compose global names and labels.

Implements llvm::DebugInfoDesc.

Definition at line 625 of file MachineDebugInfo.cpp.

Referenced by dump().

const std::string& llvm::CompileUnitDesc::getDirectory (  )  const [inline]

Definition at line 233 of file MachineDebugInfo.h.

Referenced by llvm::MachineDebugInfo::RecordSource(), and llvm::SelectionDAGLowering::visitIntrinsicCall().

const std::string& llvm::CompileUnitDesc::getFileName (  )  const [inline]

Definition at line 232 of file MachineDebugInfo.h.

Referenced by llvm::MachineDebugInfo::RecordSource(), and llvm::SelectionDAGLowering::visitIntrinsicCall().

unsigned llvm::CompileUnitDesc::getLanguage (  )  const [inline]

Definition at line 231 of file MachineDebugInfo.h.

const std::string& llvm::CompileUnitDesc::getProducer (  )  const [inline]

Definition at line 234 of file MachineDebugInfo.h.

const char * CompileUnitDesc::getTypeString (  )  const [virtual]

getTypeString - Return a string used to label this descriptor's type.

Implements llvm::DebugInfoDesc.

Definition at line 631 of file MachineDebugInfo.cpp.

void llvm::CompileUnitDesc::setDirectory ( const std::string &  D  )  [inline]

Definition at line 237 of file MachineDebugInfo.h.

void llvm::CompileUnitDesc::setFileName ( const std::string &  FN  )  [inline]

Definition at line 236 of file MachineDebugInfo.h.

void llvm::CompileUnitDesc::setLanguage ( unsigned  L  )  [inline]

Definition at line 235 of file MachineDebugInfo.h.

void llvm::CompileUnitDesc::setProducer ( const std::string &  P  )  [inline]

Definition at line 238 of file MachineDebugInfo.h.


Member Data Documentation

const char * CompileUnitDesc::AnchorString = "llvm.dbg.compile_units" [static]

getAnchorString - Return a string used to label this descriptor's anchor.

Definition at line 264 of file MachineDebugInfo.h.

Referenced by getAnchorString(), and llvm::AnchorDesc::getDescString().


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