llvm::DICompileUnit Class Reference

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

#include <DebugInfo.h>

Inheritance diagram for llvm::DICompileUnit:

llvm::DIScope llvm::DIDescriptor

List of all members.

Public Member Functions

 DICompileUnit (MDNode *N=0)
unsigned getLanguage () const
StringRef getFilename () const
StringRef getDirectory () const
StringRef getProducer () const
bool isMain () const
bool isOptimized () const
StringRef getFlags () 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.

Member Function Documentation

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.


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

Generated on Fri Mar 19 01:41:22 2010 by  doxygen 1.5.8