17 #ifndef LLVM_IR_DEBUGINFO_H 18 #define LLVM_IR_DEBUGINFO_H 83 void InitializeTypeMap(
const Module &M);
86 void processScope(
DIScope *Scope);
88 void processType(
DIType *DT);
121 return make_range(Scopes.begin(), Scopes.end());
141 #endif // LLVM_IR_DEBUGINFO_H void processLocation(const Module &M, const DILocation *Loc)
Process debug info location.
unsigned global_variable_count() const
typename SuperClass::const_iterator const_iterator
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
unsigned getDebugMetadataVersionFromModule(const Module &M)
Return Debug Info Metadata Version by checking module flags.
void reset()
Clear all lists.
unsigned subprogram_count() const
bool stripDebugInfo(Function &F)
void processModule(const Module &M)
Process entire module and collect debug info anchors.
iterator_range< scope_iterator > scopes() const
Utility to find all debug info in a module.
bool stripNonLineTableDebugInfo(Module &M)
Downgrade the debug info in a module to contain only line table information.
DISubprogram * getDISubprogram(const MDNode *Scope)
Find subprogram that is enclosing this scope.
SmallVectorImpl< DISubprogram * >::const_iterator subprogram_iterator
SmallVectorImpl< DIScope * >::const_iterator scope_iterator
bool StripDebugInfo(Module &M)
Strip debug info in the module if it exists.
iterator_range< type_iterator > types() const
unsigned compile_unit_count() const
SmallVectorImpl< DICompileUnit * >::const_iterator compile_unit_iterator
A pair of DIGlobalVariable and DIExpression.
SmallVectorImpl< DIType * >::const_iterator type_iterator
void processValue(const Module &M, const DbgValueInst *DVI)
Process DbgValueInst.
iterator_range< compile_unit_iterator > compile_units() const
void processInstruction(const Module &M, const Instruction &I)
Process a single instruction and collect debug info anchors.
iterator_range< global_variable_expression_iterator > global_variables() const
Base class for scope-like contexts.
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
A range adaptor for a pair of iterators.
This represents the llvm.dbg.value instruction.
void processDeclare(const Module &M, const DbgDeclareInst *DDI)
Process DbgDeclareInst.
unsigned scope_count() const
unsigned type_count() const
iterator_range< subprogram_iterator > subprograms() const
This represents the llvm.dbg.declare instruction.
SmallVectorImpl< DIGlobalVariableExpression * >::const_iterator global_variable_expression_iterator