LLVM API Documentation
#include <MachineDebugInfo.h>
Inheritance diagram for llvm::MachineDebugInfo:
Definition at line 955 of file MachineDebugInfo.h.
MachineDebugInfo::MachineDebugInfo | ( | ) |
Definition at line 1441 of file MachineDebugInfo.cpp.
MachineDebugInfo::~MachineDebugInfo | ( | ) |
Definition at line 1453 of file MachineDebugInfo.cpp.
bool MachineDebugInfo::doInitialization | ( | ) |
doInitialization - Initialize the debug state for a new module.
Definition at line 1459 of file MachineDebugInfo.cpp.
bool MachineDebugInfo::doFinalization | ( | ) |
doFinalization - Tear down the debug state after completion of a module.
Definition at line 1465 of file MachineDebugInfo.cpp.
void MachineDebugInfo::BeginFunction | ( | MachineFunction * | MF | ) |
BeginFunction - Begin gathering function debug information.
Definition at line 1471 of file MachineDebugInfo.cpp.
Referenced by llvm::DwarfWriter::BeginFunction().
void MachineDebugInfo::EndFunction | ( | ) |
EndFunction - Discard function debug information.
Definition at line 1477 of file MachineDebugInfo.cpp.
Referenced by llvm::DwarfWriter::EndFunction().
DebugInfoDesc * MachineDebugInfo::getDescFor | ( | Value * | V | ) |
getDescFor - Convert a Value to a debug information descriptor.
Definition at line 1493 of file MachineDebugInfo.cpp.
References llvm::DIDeserializer::Deserialize(), and V.
Referenced by llvm::SelectionDAGLowering::visitIntrinsicCall().
bool MachineDebugInfo::Verify | ( | Value * | V | ) |
Verify - Verify that a Value is debug information descriptor.
Definition at line 1499 of file MachineDebugInfo.cpp.
References V, and llvm::DIVerifier::Verify().
Referenced by llvm::SelectionDAGLowering::visitIntrinsicCall().
void MachineDebugInfo::AnalyzeModule | ( | Module & | M | ) |
AnalyzeModule - Scan the module for global debug information.
Definition at line 1505 of file MachineDebugInfo.cpp.
References M, and SetupCompileUnits().
bool llvm::MachineDebugInfo::hasInfo | ( | ) | const [inline] |
hasInfo - Returns true if valid debug info is present.
Definition at line 1022 of file MachineDebugInfo.h.
Referenced by llvm::PPCRegisterInfo::emitPrologue(), and llvm::DwarfWriter::SetDebugInfo().
unsigned llvm::MachineDebugInfo::NextLabelID | ( | ) | [inline] |
NextLabelID - Return the next unique label id.
Definition at line 1026 of file MachineDebugInfo.h.
Referenced by llvm::PPCRegisterInfo::emitPrologue(), RecordLabel(), RecordRegionEnd(), and RecordRegionStart().
unsigned MachineDebugInfo::RecordLabel | ( | unsigned | Line, | |
unsigned | Column, | |||
unsigned | Source | |||
) |
RecordLabel - Records location information and associates it with a debug label. Returns a unique label ID used to generate a label and provide correspondence to the source line list.
Definition at line 1536 of file MachineDebugInfo.cpp.
References NextLabelID().
unsigned MachineDebugInfo::RecordSource | ( | const std::string & | Directory, | |
const std::string & | Source | |||
) |
RecordSource - Register a source file with debug info. Returns an source ID.
Definition at line 1545 of file MachineDebugInfo.cpp.
References llvm::UniqueVector< T >::insert().
Referenced by RecordSource().
unsigned MachineDebugInfo::RecordSource | ( | const CompileUnitDesc * | CompileUnit | ) |
Definition at line 1550 of file MachineDebugInfo.cpp.
References llvm::CompileUnitDesc::getDirectory(), llvm::CompileUnitDesc::getFileName(), and RecordSource().
const UniqueVector<std::string>& llvm::MachineDebugInfo::getDirectories | ( | ) | const [inline] |
getDirectories - Return the UniqueVector of std::string representing directories.
Definition at line 1041 of file MachineDebugInfo.h.
const UniqueVector<SourceFileInfo>& llvm::MachineDebugInfo::getSourceFiles | ( | ) | const [inline] |
getSourceFiles - Return the UniqueVector of source files.
Definition at line 1047 of file MachineDebugInfo.h.
std::vector<SourceLineInfo *>& llvm::MachineDebugInfo::getSourceLines | ( | ) | [inline] |
getSourceLines - Return a vector of source lines.
Definition at line 1053 of file MachineDebugInfo.h.
Referenced by llvm::DwarfWriter::EndFunction().
void MachineDebugInfo::SetupCompileUnits | ( | Module & | M | ) |
SetupCompileUnits - Set up the unique vector of compile units.
Definition at line 1511 of file MachineDebugInfo.cpp.
References M.
Referenced by AnalyzeModule().
const UniqueVector< CompileUnitDesc * > MachineDebugInfo::getCompileUnits | ( | ) | const |
getCompileUnits - Return a vector of debug compile units.
Definition at line 1521 of file MachineDebugInfo.cpp.
std::vector< GlobalVariable * > MachineDebugInfo::getGlobalVariablesUsing | ( | Module & | M, | |
const std::string & | RootName | |||
) |
getGlobalVariablesUsing - Return all of the GlobalVariables that use the named GlobalVariable.
Definition at line 1528 of file MachineDebugInfo.cpp.
References getGlobalVariablesUsing(), and M.
Referenced by getAnchoredDescriptors().
std::vector<T *> llvm::MachineDebugInfo::getAnchoredDescriptors | ( | Module & | M | ) | [inline] |
getAnchoredDescriptors - Return a vector of anchored debug descriptors.
Definition at line 1072 of file MachineDebugInfo.h.
References llvm::DIDeserializer::Deserialize(), getGlobalVariablesUsing(), GV, llvm::LLVMDebugVersion, M, T, llvm::DebugInfoDesc::TagFromGlobal(), and llvm::DebugInfoDesc::VersionFromGlobal().
unsigned MachineDebugInfo::RecordRegionStart | ( | Value * | V | ) |
RecordRegionStart - Indicate the start of a region.
Definition at line 1557 of file MachineDebugInfo.cpp.
References llvm::DIDeserializer::Deserialize(), getOrCreateScope(), llvm::DebugScope::getStartLabelID(), NextLabelID(), llvm::DebugScope::setStartLabelID(), and V.
Referenced by llvm::SelectionDAGLowering::visitIntrinsicCall().
unsigned MachineDebugInfo::RecordRegionEnd | ( | Value * | V | ) |
RecordRegionEnd - Indicate the end of a region.
Definition at line 1568 of file MachineDebugInfo.cpp.
References llvm::DIDeserializer::Deserialize(), getOrCreateScope(), NextLabelID(), llvm::DebugScope::setEndLabelID(), and V.
Referenced by llvm::SelectionDAGLowering::visitIntrinsicCall().
void MachineDebugInfo::RecordVariable | ( | Value * | V, | |
unsigned | FrameIndex | |||
) |
RecordVariable - Indicate the declaration of a local variable.
Definition at line 1579 of file MachineDebugInfo.cpp.
References llvm::DIDeserializer::Deserialize(), llvm::VariableDesc::getContext(), getOrCreateScope(), and V.
Referenced by llvm::SelectionDAGLowering::visitIntrinsicCall().
DebugScope* llvm::MachineDebugInfo::getRootScope | ( | ) | [inline] |
getRootScope - Return current functions root scope.
Definition at line 1104 of file MachineDebugInfo.h.
Referenced by llvm::DwarfWriter::EndFunction().
DebugScope * MachineDebugInfo::getOrCreateScope | ( | DebugInfoDesc * | ScopeDesc | ) |
getOrCreateScope - Returns the scope associated with the given descriptor.
Definition at line 1588 of file MachineDebugInfo.cpp.
References llvm::DebugScope::AddScope(), and Slot.
Referenced by RecordRegionEnd(), RecordRegionStart(), and RecordVariable().
std::vector<MachineMove *>& llvm::MachineDebugInfo::getFrameMoves | ( | ) | [inline] |
getFrameMoves - Returns a reference to a list of moves done in the current function's prologue. Used to construct frame maps for debug comsumers.
Definition at line 1112 of file MachineDebugInfo.h.
Referenced by llvm::PPCRegisterInfo::emitPrologue().