struct GlobalsAAResult::DeletionCallbackHandle

Declaration

struct GlobalsAAResult::DeletionCallbackHandle : public CallbackVH { /* full declaration omitted */ };

Description

Handle to clear this analysis on deletion of values.

Declared at: llvm/include/llvm/Analysis/GlobalsModRef.h:62

Inherits from: CallbackVH

Member Variables

public llvm::GlobalsAAResult* GAR
public std::list<DeletionCallbackHandle>::iterator I

Method Overview

Inherited from CallbackVH:

Inherited from ValueHandleBase:

Methods

DeletionCallbackHandle(llvm::GlobalsAAResult& GAR,
                       llvm::Value* V)

Declared at: llvm/include/llvm/Analysis/GlobalsModRef.h:66

Parameters

llvm::GlobalsAAResult& GAR
llvm::Value* V

void deleted()

Description

Callback for Value destruction. Called when this->getValPtr() is destroyed, inside ~Value(), so you may call any non-virtual Value method on getValPtr(), but no subclass methods. If WeakTrackingVH were implemented as a CallbackVH, it would use this method to call setValPtr(NULL). AssertingVH would use this method to cause an assertion failure. All implementations must remove the reference from this object to the Value that's being destroyed.

Declared at: llvm/include/llvm/Analysis/GlobalsModRef.h:69