clang 24.0.0git
clang::PTUCheckpointLedger Class Reference

Maps addresses to the PTU that allocated them, by keeping the slab checkpoint taken before each PTU began. More...

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Interpreter/ErrorRecovery.h"

Public Member Functions

 PTUCheckpointLedger (const ASTContext &Ctx)
void recordCheckpoint (PTUID ID)
 Called once, right before parsing PTU ID begins.
bool isFromThisPTU (const void *Ptr, PTUID ID) const
 Was Ptr allocated during PTU ID or later?
void markDead (PTUID ID)
 FIXME: Pop back CheckpointBeforePTU once memory restoration is supported.

Detailed Description

Maps addresses to the PTU that allocated them, by keeping the slab checkpoint taken before each PTU began.

Definition at line 195 of file ErrorRecovery.h.

Constructor & Destructor Documentation

◆ PTUCheckpointLedger()

clang::PTUCheckpointLedger::PTUCheckpointLedger ( const ASTContext & Ctx)
inlineexplicit

Definition at line 201 of file ErrorRecovery.h.

Member Function Documentation

◆ isFromThisPTU()

bool clang::PTUCheckpointLedger::isFromThisPTU ( const void * Ptr,
PTUID ID ) const
inline

Was Ptr allocated during PTU ID or later?

Definition at line 213 of file ErrorRecovery.h.

◆ markDead()

void clang::PTUCheckpointLedger::markDead ( PTUID ID)
inline

FIXME: Pop back CheckpointBeforePTU once memory restoration is supported.

For now, there is no memory restoration, so mark it dead.

Definition at line 223 of file ErrorRecovery.h.

◆ recordCheckpoint()

void clang::PTUCheckpointLedger::recordCheckpoint ( PTUID ID)
inline

Called once, right before parsing PTU ID begins.

Definition at line 204 of file ErrorRecovery.h.


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