LLVM API Documentation
#include <DebugInfo.h>
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. | |
Definition at line 113 of file DebugInfo.h.
| llvm::DICompileUnit::DICompileUnit | ( | GlobalVariable * | GV = 0 |
) | [inline, explicit] |
Definition at line 115 of file DebugInfo.h.
| 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] |
Definition at line 119 of file DebugInfo.h.
References llvm::DIDescriptor::getStringField().
Referenced by dump(), llvm::getLocationInfo(), llvm::MachineInstr::print(), llvm::DwarfDebug::RecordSourceLine(), and Verify().
| const std::string& llvm::DICompileUnit::getDirectory | ( | std::string & | F | ) | const [inline] |
Definition at line 122 of file DebugInfo.h.
References llvm::DIDescriptor::getStringField().
Referenced by dump(), llvm::getLocationInfo(), llvm::MachineInstr::print(), and llvm::DwarfDebug::RecordSourceLine().
| const std::string& llvm::DICompileUnit::getProducer | ( | std::string & | F | ) | 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 138 of file DebugInfo.h.
References llvm::DIDescriptor::getUnsignedField().
| bool llvm::DICompileUnit::isOptimized | ( | ) | const [inline] |
| const std::string& llvm::DICompileUnit::getFlags | ( | std::string & | F | ) | const [inline] |
| unsigned llvm::DICompileUnit::getRunTimeVersion | ( | ) | const [inline] |
| 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().