clang 20.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
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.

◆ 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.

Member Function Documentation

◆ isEmpty()

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

Friends And Related Function Documentation

◆ operator==

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

Definition at line 181 of file Thunk.h.

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(), and isEmpty().

◆ Return

ReturnAdjustment clang::ThunkInfo::Return

The return adjustment.

Definition at line 162 of file Thunk.h.

Referenced by dumpMicrosoftThunkAdjustment(), isEmpty(), PerformReturnAdjustment(), and setThunkProperties().

◆ This

ThisAdjustment clang::ThunkInfo::This

The this pointer adjustment.

Definition at line 159 of file Thunk.h.

Referenced by dumpMicrosoftThunkAdjustment(), and isEmpty().

◆ ThisType

const Type* clang::ThunkInfo::ThisType

Definition at line 173 of file Thunk.h.

Referenced by mangleOverrideDiscrimination().


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