clang 22.0.0git
clang::ThunkInfo Struct Reference

The this pointer adjustment as well as an optional return adjustment for a thunk. More...

#include "clang/Basic/Thunk.h"

Public Member Functions

 ThunkInfo ()
 ThunkInfo (const ThisAdjustment &This, const ReturnAdjustment &Return, const Type *ThisT, const CXXMethodDecl *Method=nullptr)
bool isEmpty () const

Public Attributes

ThisAdjustment This
 The this pointer adjustment.
ReturnAdjustment Return
 The return adjustment.
const CXXMethodDeclMethod
 Holds a pointer to the overridden method this thunk is for, if needed by the ABI to distinguish different thunks with equal adjustments.
const TypeThisType

Friends

bool operator== (const ThunkInfo &LHS, const ThunkInfo &RHS)

Detailed Description

The this pointer adjustment as well as an optional return adjustment for a thunk.

Definition at line 157 of file Thunk.h.

Constructor & Destructor Documentation

◆ ThunkInfo() [1/2]

clang::ThunkInfo::ThunkInfo ( )
inline

Definition at line 175 of file Thunk.h.

References Method, clang::nullptr, and ThisType.

Referenced by operator==.

◆ ThunkInfo() [2/2]

clang::ThunkInfo::ThunkInfo ( const ThisAdjustment & This,
const ReturnAdjustment & Return,
const Type * ThisT,
const CXXMethodDecl * Method = nullptr )
inline

Definition at line 177 of file Thunk.h.

References Method, Return, This, and ThisType.

Member Function Documentation

◆ isEmpty()

bool clang::ThunkInfo::isEmpty ( ) const
inline

Definition at line 186 of file Thunk.h.

References Method, Return, and This.

◆ operator==

bool operator== ( const ThunkInfo & LHS,
const ThunkInfo & RHS )
friend

Definition at line 181 of file Thunk.h.

References Method, Return, This, ThisType, and ThunkInfo().

Member Data Documentation

◆ Method

const CXXMethodDecl* clang::ThunkInfo::Method

Holds a pointer to the overridden method this thunk is for, if needed by the ABI to distinguish different thunks with equal adjustments.

In the Itanium ABI, this field can hold the method that created the vtable entry for this thunk. Otherwise, null. CAUTION: In the unlikely event you need to sort ThunkInfos, consider using an ABI-specific comparator.

Definition at line 172 of file Thunk.h.

Referenced by dumpMicrosoftThunkAdjustment(), isEmpty(), operator==, ThunkInfo(), and ThunkInfo().

◆ Return

◆ This

ThisAdjustment clang::ThunkInfo::This

The this pointer adjustment.

Definition at line 159 of file Thunk.h.

Referenced by dumpMicrosoftThunkAdjustment(), isEmpty(), operator==, and ThunkInfo().

◆ ThisType


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