|
LLVM
5.0.0
|
Utility to find all debug info in a module. More...
#include "llvm/IR/DebugInfo.h"
Public Types | |
| using | compile_unit_iterator = SmallVectorImpl< DICompileUnit * >::const_iterator |
| using | subprogram_iterator = SmallVectorImpl< DISubprogram * >::const_iterator |
| using | global_variable_expression_iterator = SmallVectorImpl< DIGlobalVariableExpression * >::const_iterator |
| using | type_iterator = SmallVectorImpl< DIType * >::const_iterator |
| using | scope_iterator = SmallVectorImpl< DIScope * >::const_iterator |
Public Member Functions | |
| void | processModule (const Module &M) |
| Process entire module and collect debug info anchors. More... | |
| void | processDeclare (const Module &M, const DbgDeclareInst *DDI) |
| Process DbgDeclareInst. More... | |
| void | processValue (const Module &M, const DbgValueInst *DVI) |
| Process DbgValueInst. More... | |
| void | processLocation (const Module &M, const DILocation *Loc) |
| Process debug info location. More... | |
| void | reset () |
| Clear all lists. More... | |
| iterator_range < compile_unit_iterator > | compile_units () const |
| iterator_range < subprogram_iterator > | subprograms () const |
| iterator_range < global_variable_expression_iterator > | global_variables () const |
| iterator_range< type_iterator > | types () const |
| iterator_range< scope_iterator > | scopes () const |
| unsigned | compile_unit_count () const |
| unsigned | global_variable_count () const |
| unsigned | subprogram_count () const |
| unsigned | type_count () const |
| unsigned | scope_count () const |
Utility to find all debug info in a module.
DebugInfoFinder tries to list all debug info MDNodes used in a module. To list debug info MDNodes used by an instruction, DebugInfoFinder uses processDeclare, processValue and processLocation to handle DbgDeclareInst, DbgValueInst and DbgLoc attached to instructions. processModule will go through all DICompileUnits in llvm.dbg.cu and list debug info MDNodes used by the CUs.
Definition at line 65 of file DebugInfo.h.
| using llvm::DebugInfoFinder::compile_unit_iterator = SmallVectorImpl<DICompileUnit *>::const_iterator |
Definition at line 94 of file DebugInfo.h.
| using llvm::DebugInfoFinder::global_variable_expression_iterator = SmallVectorImpl<DIGlobalVariableExpression *>::const_iterator |
Definition at line 97 of file DebugInfo.h.
| using llvm::DebugInfoFinder::scope_iterator = SmallVectorImpl<DIScope *>::const_iterator |
Definition at line 99 of file DebugInfo.h.
| using llvm::DebugInfoFinder::subprogram_iterator = SmallVectorImpl<DISubprogram *>::const_iterator |
Definition at line 95 of file DebugInfo.h.
| using llvm::DebugInfoFinder::type_iterator = SmallVectorImpl<DIType *>::const_iterator |
Definition at line 98 of file DebugInfo.h.
|
inline |
Definition at line 121 of file DebugInfo.h.
|
inline |
Definition at line 101 of file DebugInfo.h.
References llvm::make_range().
|
inline |
Definition at line 122 of file DebugInfo.h.
|
inline |
Definition at line 109 of file DebugInfo.h.
References llvm::make_range().
| void DebugInfoFinder::processDeclare | ( | const Module & | M, |
| const DbgDeclareInst * | DDI | ||
| ) |
Process DbgDeclareInst.
Definition at line 175 of file DebugInfo.cpp.
References llvm::dyn_cast(), llvm::DbgDeclareInst::getVariable(), and N.
Referenced by llvm::CloneBasicBlock().
| void DebugInfoFinder::processLocation | ( | const Module & | M, |
| const DILocation * | Loc | ||
| ) |
Process debug info location.
Definition at line 104 of file DebugInfo.cpp.
Referenced by llvm::CloneBasicBlock().
Process entire module and collect debug info anchors.
Definition at line 60 of file DebugInfo.cpp.
References llvm::Module::debug_compile_units(), F, llvm::Module::functions(), I, and llvm::Import.
| void DebugInfoFinder::processValue | ( | const Module & | M, |
| const DbgValueInst * | DVI | ||
| ) |
Process DbgValueInst.
Definition at line 191 of file DebugInfo.cpp.
References llvm::dyn_cast(), llvm::DbgValueInst::getVariable(), and N.
Referenced by llvm::CloneBasicBlock().
| void DebugInfoFinder::reset | ( | ) |
Clear all lists.
Definition at line 51 of file DebugInfo.cpp.
|
inline |
Definition at line 125 of file DebugInfo.h.
|
inline |
Definition at line 117 of file DebugInfo.h.
References llvm::make_range().
|
inline |
Definition at line 123 of file DebugInfo.h.
|
inline |
Definition at line 105 of file DebugInfo.h.
References llvm::make_range().
Referenced by llvm::CloneFunctionInto().
|
inline |
Definition at line 124 of file DebugInfo.h.
|
inline |
Definition at line 113 of file DebugInfo.h.
References llvm::make_range().
Referenced by llvm::CloneFunctionInto().
1.8.6