LLVM API Documentation

llvm::DICompileUnit Class Reference

DICompileUnit - A wrapper for a compile unit. More...

#include <DebugInfo.h>

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

List of all members.

Public Member Functions

 DICompileUnit (GlobalVariable *GV=0)
unsigned getLanguage () const
const std::string & getFilename (std::string &F) const
const std::string & getDirectory (std::string &F) const
const std::string & getProducer (std::string &F) const
bool isMain () const
bool isOptimized () const
const std::string & getFlags (std::string &F) const
unsigned getRunTimeVersion () const
bool Verify () const
 Verify - Verify that a compile unit is well formed.
void dump () const
 dump - print compile unit.


Detailed Description

DICompileUnit - A wrapper for a compile unit.

Definition at line 113 of file DebugInfo.h.


Constructor & Destructor Documentation

llvm::DICompileUnit::DICompileUnit ( GlobalVariable *  GV = 0  )  [inline, explicit]

Definition at line 115 of file DebugInfo.h.


Member Function Documentation

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

Definition at line 118 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by dump().

const std::string& llvm::DICompileUnit::getFilename ( std::string &  F  )  const [inline]

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

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

Definition at line 125 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

bool llvm::DICompileUnit::isMain (  )  const [inline]

isMain - Each input file is encoded as a separate compile unit in LLVM debugging information output. However, many target specific tool chains prefer to encode only one compile unit in an object file. In this situation, the LLVM code generator will include debugging information entities in the compile unit that is marked as main compile unit. The code generator accepts maximum one main compile unit per module. If a module does not contain any main compile unit then the code generator will emit multiple compile units in the output object file.

Definition at line 138 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

bool llvm::DICompileUnit::isOptimized (  )  const [inline]

Definition at line 139 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

const std::string& llvm::DICompileUnit::getFlags ( std::string &  F  )  const [inline]

Definition at line 140 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

unsigned llvm::DICompileUnit::getRunTimeVersion (  )  const [inline]

Definition at line 143 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

bool DICompileUnit::Verify (  )  const

Verify - Verify that a compile unit is well formed.

Definition at line 223 of file DebugInfo.cpp.

References empty, getFilename(), and llvm::DIDescriptor::isNull().

Referenced by llvm::DIGlobalVariable::Verify(), llvm::DIType::Verify(), llvm::DISubprogram::Verify(), and llvm::DICompositeType::Verify().

void DICompileUnit::dump (  )  const

dump - print compile unit.

dump - Print compile unit.

Reimplemented from llvm::DIDescriptor.

Definition at line 350 of file DebugInfo.cpp.

References llvm::cerr(), getDirectory(), getFilename(), getLanguage(), and llvm::dwarf::LanguageString().

Referenced by llvm::DIVariable::dump(), llvm::DIGlobal::dump(), and llvm::DIType::dump().


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