LLVM API Documentation
#include <DebugInfo.h>
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. | |
Definition at line 104 of file DebugInfo.h.
| DICompileUnit::DICompileUnit | ( | GlobalVariable * | GV = 0 |
) | [explicit] |
Definition at line 94 of file DebugInfo.cpp.
| 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] |
| 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] |
| std::string llvm::DICompileUnit::getFlags | ( | ) | const [inline] |
| 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 |
dump - print compile unit.
Definition at line 851 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().