class CtorDtorIterator

Declaration

class CtorDtorIterator { /* full declaration omitted */ };

Description

This iterator provides a convenient way to iterate over the elements of an llvm.global_ctors/llvm.global_dtors instance. The easiest way to get hold of instances of this class is to use the getConstructors/getDestructors functions.

Declared at: llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h:47

Member Variables

private const llvm::ConstantArray* InitList
private unsigned int I

Method Overview

Methods

ΒΆCtorDtorIterator(const llvm::GlobalVariable* GV,
                 bool End)

Description

Construct an iterator instance. If End is true then this iterator acts as the end of the range, otherwise it is the beginning.

Declared at: llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h:64

Parameters

const llvm::GlobalVariable* GV
bool End