LLVM 22.0.0git
llvm::Module::debug_compile_units_iterator Class Reference

An iterator for DICompileUnits that skips those marked NoDebug. More...

#include "llvm/IR/Module.h"

Public Types

using iterator_category = std::input_iterator_tag
using value_type = DICompileUnit *
using difference_type = std::ptrdiff_t
using pointer = value_type *
using reference = value_type &

Public Member Functions

 debug_compile_units_iterator (NamedMDNode *CUs, unsigned Idx)
debug_compile_units_iteratoroperator++ ()
debug_compile_units_iterator operator++ (int)
bool operator== (const debug_compile_units_iterator &I) const
bool operator!= (const debug_compile_units_iterator &I) const
LLVM_ABI DICompileUnitoperator* () const
LLVM_ABI DICompileUnitoperator-> () const

Detailed Description

An iterator for DICompileUnits that skips those marked NoDebug.

Definition at line 797 of file Module.h.

Member Typedef Documentation

◆ difference_type

Definition at line 806 of file Module.h.

◆ iterator_category

Definition at line 804 of file Module.h.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ debug_compile_units_iterator()

llvm::Module::debug_compile_units_iterator::debug_compile_units_iterator ( NamedMDNode * CUs,
unsigned Idx )
inlineexplicit

Definition at line 810 of file Module.h.

Referenced by operator!=(), operator++(), operator++(), and operator==().

Member Function Documentation

◆ operator!=()

bool llvm::Module::debug_compile_units_iterator::operator!= ( const debug_compile_units_iterator & I) const
inline

Definition at line 831 of file Module.h.

References debug_compile_units_iterator(), and I.

◆ operator*()

DICompileUnit * Module::debug_compile_units_iterator::operator* ( ) const

Definition at line 428 of file Module.cpp.

◆ operator++() [1/2]

debug_compile_units_iterator & llvm::Module::debug_compile_units_iterator::operator++ ( )
inline

Definition at line 815 of file Module.h.

References debug_compile_units_iterator().

◆ operator++() [2/2]

debug_compile_units_iterator llvm::Module::debug_compile_units_iterator::operator++ ( int )
inline

Definition at line 821 of file Module.h.

References debug_compile_units_iterator(), and T.

◆ operator->()

DICompileUnit * Module::debug_compile_units_iterator::operator-> ( ) const

Definition at line 431 of file Module.cpp.

◆ operator==()

bool llvm::Module::debug_compile_units_iterator::operator== ( const debug_compile_units_iterator & I) const
inline

Definition at line 827 of file Module.h.

References debug_compile_units_iterator(), and I.


The documentation for this class was generated from the following files: