LLVM API Documentation
#include <DwarfDebug.h>
Definition at line 60 of file DwarfDebug.h.
| DwarfDebug::DwarfDebug | ( | raw_ostream & | OS, | |
| AsmPrinter * | A, | |||
| const TargetAsmInfo * | T | |||
| ) |
Definition at line 227 of file DwarfDebug.cpp.
References getDwarfTimerGroup(), and llvm::TimePassesIsEnabled.
| DwarfDebug::~DwarfDebug | ( | ) | [virtual] |
| bool llvm::DwarfDebug::ShouldEmitDwarfDebug | ( | ) | const [inline] |
ShouldEmitDwarfDebug - Returns true if Dwarf debugging declarations should be emitted.
Definition at line 470 of file DwarfDebug.h.
Referenced by BeginFunction(), EndFunction(), EndModule(), and llvm::DwarfWriter::ShouldEmitDwarfDebug().
| void DwarfDebug::BeginModule | ( | Module * | M, | |
| MachineModuleInfo * | mmi | |||
| ) |
BeginModule - Emit all Dwarf sections that should come prior to the content.
BeginModule - Emit all Dwarf sections that should come prior to the content. Create global DIEs and emit initial debug info sections. This is inovked by the target AsmPrinter.
Definition at line 1283 of file DwarfDebug.cpp.
References llvm::sys::Path::appendComponent(), llvm::Dwarf::Asm, llvm::DebugInfoFinder::compile_unit_begin(), llvm::DebugInfoFinder::compile_unit_end(), E, llvm::AsmPrinter::EmitFile(), llvm::AsmPrinter::EOL(), llvm::AsmPrinter::getObjFileLowering(), llvm::TargetLoweringObjectFile::getTextSection(), llvm::DebugInfoFinder::global_variable_begin(), llvm::DebugInfoFinder::global_variable_count(), llvm::DebugInfoFinder::global_variable_end(), llvm::TargetAsmInfo::hasDotLocAndDotFile(), llvm::Dwarf::MMI, llvm::DebugInfoFinder::processModule(), llvm::MachineModuleInfo::setDebugInfoAvailability(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), llvm::DebugInfoFinder::subprogram_begin(), llvm::DebugInfoFinder::subprogram_count(), llvm::DebugInfoFinder::subprogram_end(), llvm::Dwarf::TAI, llvm::TimePassesIsEnabled, and llvm::sys::Path::toString().
Referenced by llvm::DwarfWriter::BeginModule().
| void DwarfDebug::EndModule | ( | ) |
EndModule - Emit all Dwarf sections that should come after the content.
Definition at line 1360 of file DwarfDebug.cpp.
References llvm::Dwarf::Asm, E, llvm::Dwarf::EmitLabel(), llvm::TargetLoweringObjectFile::getDataSection(), llvm::AsmPrinter::getObjFileLowering(), llvm::TargetLoweringObjectFile::getTextSection(), llvm::AsmPrinter::OutStreamer, ShouldEmitDwarfDebug(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), llvm::MCStreamer::SwitchSection(), and llvm::TimePassesIsEnabled.
Referenced by llvm::DwarfWriter::EndModule().
| void DwarfDebug::BeginFunction | ( | MachineFunction * | MF | ) |
BeginFunction - Gather pre-function debug information. Assumes being emitted immediately after the function entry point.
BeginFunction - Gather pre-function debug information. Assumes being emitted immediately after the function entry point.
Definition at line 1426 of file DwarfDebug.cpp.
References llvm::Dwarf::Asm, llvm::MachineModuleInfo::BeginFunction(), llvm::DebugLocTuple::Col, llvm::DebugLocTuple::CompileUnit, llvm::Dwarf::EmitLabel(), llvm::MachineFunction::getDebugLocTuple(), llvm::MachineFunction::getDefaultDebugLoc(), llvm::DebugLoc::isUnknown(), LabelID, llvm::DebugLocTuple::Line, llvm::Dwarf::MMI, llvm::AsmPrinter::printLabel(), RecordSourceLine(), ShouldEmitDwarfDebug(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), llvm::Dwarf::SubprogramCount, and llvm::TimePassesIsEnabled.
Referenced by llvm::DwarfWriter::BeginFunction().
| void DwarfDebug::EndFunction | ( | MachineFunction * | MF | ) |
EndFunction - Gather and emit post-function debug information.
Definition at line 1456 of file DwarfDebug.cpp.
References llvm::Dwarf::Asm, E, llvm::Dwarf::EmitLabel(), llvm::AsmPrinter::getCurrentSection(), llvm::MachineModuleInfo::getFrameMoves(), llvm::Dwarf::MMI, ShouldEmitDwarfDebug(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), llvm::Dwarf::SubprogramCount, and llvm::TimePassesIsEnabled.
Referenced by llvm::DwarfWriter::EndFunction().
RecordSourceLine - Records location information and associates it with a label. Returns a unique label ID used to generate a label and provide correspondence to the source line list.
RecordSourceLine - Records location information and associates it with a label. Returns a unique label ID used to generate a label and provide correspondence to the source line list.
Definition at line 1521 of file DwarfDebug.cpp.
References llvm::CompileUnit::getID(), llvm::Dwarf::MMI, llvm::MachineModuleInfo::NextLabelID(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.
Referenced by BeginFunction(), and llvm::DwarfWriter::RecordSourceLine().
| unsigned DwarfDebug::RecordSourceLine | ( | unsigned | Line, | |
| unsigned | Col, | |||
| DICompileUnit | CU | |||
| ) |
RecordSourceLine - Records location information and associates it with a label. Returns a unique label ID used to generate a label and provide correspondence to the source line list.
RecordSourceLine - Records location information and associates it with a label. Returns a unique label ID used to generate a label and provide correspondence to the source line list.
Definition at line 1539 of file DwarfDebug.cpp.
References llvm::DICompileUnit::getDirectory(), llvm::DICompileUnit::getFilename(), llvm::Dwarf::MMI, llvm::MachineModuleInfo::NextLabelID(), Src, llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.
| unsigned llvm::DwarfDebug::getRecordSourceLineCount | ( | ) | const [inline] |
getRecordSourceLineCount - Return the number of source lines in the debug info.
Definition at line 500 of file DwarfDebug.h.
Referenced by llvm::DwarfWriter::getRecordSourceLineCount().
| unsigned DwarfDebug::getOrCreateSourceID | ( | const std::string & | DirName, | |
| const std::string & | FileName | |||
| ) |
getOrCreateSourceID - Public version of GetOrCreateSourceID. This can be timed. Look up the source id with the given directory and source file names. If none currently exists, create a new id and insert it in the SourceIds map. This can update DirectoryNames and SourceFileNames maps as well.
getOrCreateSourceID - Public version of GetOrCreateSourceID. This can be timed. Look up the source id with the given directory and source file names. If none currently exists, create a new id and insert it in the SourceIds map. This can update DirectoryNames and SourceFileNames maps as well.
Definition at line 1561 of file DwarfDebug.cpp.
References llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.
| unsigned DwarfDebug::RecordRegionStart | ( | GlobalVariable * | V | ) |
RecordRegionStart - Indicate the start of a region.
Definition at line 1575 of file DwarfDebug.cpp.
References llvm::DbgScope::getStartLabelID(), llvm::Dwarf::MMI, llvm::MachineModuleInfo::NextLabelID(), llvm::DbgScope::setStartLabelID(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.
Referenced by llvm::DwarfWriter::RecordRegionStart().
| unsigned DwarfDebug::RecordRegionEnd | ( | GlobalVariable * | V | ) |
RecordRegionEnd - Indicate the end of a region.
Definition at line 1591 of file DwarfDebug.cpp.
References llvm::Dwarf::MMI, llvm::MachineModuleInfo::NextLabelID(), llvm::DbgScope::setEndLabelID(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.
Referenced by llvm::DwarfWriter::RecordRegionEnd().
| void DwarfDebug::RecordVariable | ( | GlobalVariable * | GV, | |
| unsigned | FrameIndex, | |||
| const MachineInstr * | MI | |||
| ) |
RecordVariable - Indicate the declaration of a local variable.
RecordVariable - Indicate the declaration of a local variable.
Definition at line 1612 of file DwarfDebug.cpp.
References llvm::DbgScope::AddVariable(), llvm::dwarf::DW_TAG_variable, llvm::DIVariable::getContext(), llvm::DIGlobal::getContext(), llvm::DIDescriptor::getGV(), llvm::DIDescriptor::getTag(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.
Referenced by llvm::DwarfWriter::RecordVariable().
| unsigned DwarfDebug::RecordInlinedFnStart | ( | DISubprogram & | SP, | |
| DICompileUnit | CU, | |||
| unsigned | Line, | |||
| unsigned | Col | |||
| ) |
Definition at line 1651 of file DwarfDebug.cpp.
References llvm::TargetAsmInfo::doesDwarfUsesInlineInfoSection(), llvm::dwarf::DW_AT_abstract_origin, llvm::dwarf::DW_AT_call_column, llvm::dwarf::DW_AT_call_file, llvm::dwarf::DW_AT_call_line, llvm::dwarf::DW_AT_inline, llvm::dwarf::DW_FORM_ref4, llvm::dwarf::DW_INL_declared_not_inlined, llvm::dwarf::DW_TAG_inlined_subroutine, llvm::CompileUnit::getDieMapSlotFor(), llvm::DIDescriptor::getGV(), llvm::CompileUnit::getID(), LabelID, llvm::Dwarf::MMI, llvm::MachineModuleInfo::NextLabelID(), llvm::MachineModuleInfo::RecordUsedDbgLabel(), llvm::DIE::setAbstractCompileUnit(), llvm::DbgConcreteScope::setDie(), llvm::DbgScope::setStartLabelID(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), llvm::Dwarf::TAI, and llvm::TimePassesIsEnabled.
Referenced by llvm::DwarfWriter::RecordInlinedFnStart().
| unsigned DwarfDebug::RecordInlinedFnEnd | ( | DISubprogram & | SP | ) |
RecordInlinedFnEnd - Indicate the end of inlined subroutine.
Definition at line 1732 of file DwarfDebug.cpp.
References llvm::SmallVectorImpl< T >::back(), llvm::TargetAsmInfo::doesDwarfUsesInlineInfoSection(), llvm::SmallVectorImpl< T >::empty(), llvm::DIDescriptor::getGV(), llvm::Dwarf::MMI, llvm::MachineModuleInfo::NextLabelID(), llvm::SmallVectorImpl< T >::pop_back(), llvm::MachineModuleInfo::RecordUsedDbgLabel(), llvm::DbgScope::setEndLabelID(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), llvm::Dwarf::TAI, and llvm::TimePassesIsEnabled.
Referenced by llvm::DwarfWriter::RecordInlinedFnEnd().
| void DwarfDebug::RecordVariableScope | ( | DIVariable & | DV, | |
| const MachineInstr * | DeclareMI | |||
| ) |
RecordVariableScope - Record scope for the variable declared by DeclareMI. DeclareMI must describe TargetInstrInfo::DECLARE. Record scopes for only inlined subroutine variables. Other variables's scopes are determined during RecordVariable().
RecordVariableScope - Record scope for the variable declared by DeclareMI. DeclareMI must describe TargetInstrInfo::DECLARE. Record scopes for only inlined subroutine variables. Other variables's scopes are determined during RecordVariable().
Definition at line 1775 of file DwarfDebug.cpp.
References llvm::DIVariable::getContext(), llvm::DIDescriptor::getGV(), if(), llvm::DIDescriptor::isNull(), llvm::Timer::startTimer(), llvm::Timer::stopTimer(), and llvm::TimePassesIsEnabled.
Referenced by llvm::DwarfWriter::RecordVariableScope().