LLVM API Documentation

llvm::CompileUnit Class Reference

Collaboration diagram for llvm::CompileUnit:
[legend]

List of all members.

Public Member Functions

 CompileUnit (unsigned I, DIE *D)
 ~CompileUnit ()
unsigned getID () const
DIE * getDie () const
StringMap< DIE * > & getGlobals ()
bool hasContent () const
void AddGlobal (const std::string &Name, DIE *Die)
DIE *& getDieMapSlotFor (GlobalVariable *GV)
DIEEntry *& getDIEEntrySlotFor (GlobalVariable *GV)
DIE * AddDie (DIE &Buffer)


Detailed Description

CompileUnit - This dwarf writer support class manages information associate with a source file.

Definition at line 47 of file DwarfDebug.cpp.


Constructor & Destructor Documentation

llvm::CompileUnit::CompileUnit ( unsigned  I,
DIE *  D 
) [inline]

Definition at line 72 of file DwarfDebug.cpp.

llvm::CompileUnit::~CompileUnit (  )  [inline]

Definition at line 74 of file DwarfDebug.cpp.


Member Function Documentation

unsigned llvm::CompileUnit::getID (  )  const [inline]

Definition at line 77 of file DwarfDebug.cpp.

References ID.

Referenced by llvm::DwarfDebug::RecordInlinedFnStart(), and llvm::DwarfDebug::RecordSourceLine().

DIE* llvm::CompileUnit::getDie (  )  const [inline]

Definition at line 78 of file DwarfDebug.cpp.

StringMap<DIE*>& llvm::CompileUnit::getGlobals (  )  [inline]

Definition at line 79 of file DwarfDebug.cpp.

bool llvm::CompileUnit::hasContent (  )  const [inline]

hasContent - Return true if this compile unit has something to write out.

Definition at line 83 of file DwarfDebug.cpp.

void llvm::CompileUnit::AddGlobal ( const std::string &  Name,
DIE *  Die 
) [inline]

AddGlobal - Add a new global entity to the compile unit.

Definition at line 87 of file DwarfDebug.cpp.

DIE*& llvm::CompileUnit::getDieMapSlotFor ( GlobalVariable *  GV  )  [inline]

getDieMapSlotFor - Returns the debug information entry map slot for the specified debug variable.

Definition at line 91 of file DwarfDebug.cpp.

Referenced by llvm::DwarfDebug::RecordInlinedFnStart().

DIEEntry*& llvm::CompileUnit::getDIEEntrySlotFor ( GlobalVariable *  GV  )  [inline]

getDIEEntrySlotFor - Returns the debug information entry proxy slot for the specified debug variable.

Definition at line 95 of file DwarfDebug.cpp.

DIE* llvm::CompileUnit::AddDie ( DIE &  Buffer  )  [inline]

AddDie - Adds or interns the DIE to the compile unit.

Definition at line 101 of file DwarfDebug.cpp.

References llvm::DIE::AddChild(), llvm::DIE::Detach(), ID, and llvm::DIE::Profile().


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