clang 19.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 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.
 

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 156 of file Thunk.h.

Constructor & Destructor Documentation

◆ ThunkInfo() [1/2]

clang::ThunkInfo::ThunkInfo ( )
inline

Definition at line 170 of file Thunk.h.

◆ ThunkInfo() [2/2]

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

Definition at line 172 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 176 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.

Otherwise, null. CAUTION: In the unlikely event you need to sort ThunkInfos, consider using an ABI-specific comparator.

Definition at line 168 of file Thunk.h.

Referenced by dumpMicrosoftThunkAdjustment(), and isEmpty().

◆ Return

ReturnAdjustment clang::ThunkInfo::Return

The return adjustment.

Definition at line 161 of file Thunk.h.

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

◆ This

ThisAdjustment clang::ThunkInfo::This

The this pointer adjustment.

Definition at line 158 of file Thunk.h.

Referenced by dumpMicrosoftThunkAdjustment(), and isEmpty().


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