retdec
Public Member Functions | Private Attributes | List of all members
retdec::llvmir_emul::AllocaHolder Class Reference

#include <llvmir_emul.h>

Collaboration diagram for retdec::llvmir_emul::AllocaHolder:
Collaboration graph
[legend]

Public Member Functions

 AllocaHolder ()
 
 AllocaHolder (AllocaHolder &RHS)=default
 
 AllocaHolder (AllocaHolder &&RHS)
 
AllocaHolderoperator= (AllocaHolder &RHS)=default
 
AllocaHolderoperator= (AllocaHolder &&RHS)
 
 ~AllocaHolder ()
 
void add (void *Mem)
 

Private Attributes

std::vector< void * > Allocations
 

Detailed Description

AllocaHolder - Object to track all of the blocks of memory allocated by alloca. When the function returns, this object is popped off the execution stack, which causes the dtor to be run, which frees all the alloca'd memory.

Constructor & Destructor Documentation

◆ AllocaHolder() [1/3]

retdec::llvmir_emul::AllocaHolder::AllocaHolder ( )
inline

◆ AllocaHolder() [2/3]

retdec::llvmir_emul::AllocaHolder::AllocaHolder ( AllocaHolder RHS)
default

◆ AllocaHolder() [3/3]

retdec::llvmir_emul::AllocaHolder::AllocaHolder ( AllocaHolder &&  RHS)
inline

◆ ~AllocaHolder()

retdec::llvmir_emul::AllocaHolder::~AllocaHolder ( )
inline

Member Function Documentation

◆ add()

void retdec::llvmir_emul::AllocaHolder::add ( void *  Mem)
inline

◆ operator=() [1/2]

AllocaHolder& retdec::llvmir_emul::AllocaHolder::operator= ( AllocaHolder &&  RHS)
inline

◆ operator=() [2/2]

AllocaHolder& retdec::llvmir_emul::AllocaHolder::operator= ( AllocaHolder RHS)
default

Member Data Documentation

◆ Allocations

std::vector<void *> retdec::llvmir_emul::AllocaHolder::Allocations
private

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