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
std::string getFilename () const
std::string getDirectory () const
std::string getProducer () const
bool isMain () const
bool isOptimized () const
std::string getFlags () 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 104 of file DebugInfo.h.


Constructor & Destructor Documentation

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

Definition at line 94 of file DebugInfo.cpp.


Member Function Documentation

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

Definition at line 108 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by dump().

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

Definition at line 109 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

Referenced by dump(), llvm::FunctionLoweringInfo::set(), and Verify().

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

Definition at line 110 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

Referenced by dump(), and llvm::FunctionLoweringInfo::set().

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

Definition at line 111 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 121 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

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

Definition at line 122 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

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

Definition at line 123 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

bool DICompileUnit::Verify (  )  const

Verify - Verify that a compile unit is well formed.

Definition at line 185 of file DebugInfo.cpp.

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

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

void DICompileUnit::dump (  )  const


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