clang  6.0.0svn
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/ABI.h"

Collaboration diagram for clang::ThunkInfo:
Collaboration graph
[legend]

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. More...
 
ReturnAdjustment Return
 The return adjustment. More...
 
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. More...
 

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 179 of file ABI.h.

Constructor & Destructor Documentation

◆ ThunkInfo() [1/2]

clang::ThunkInfo::ThunkInfo ( )
inline

Definition at line 193 of file ABI.h.

◆ ThunkInfo() [2/2]

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

Definition at line 195 of file ABI.h.

Member Function Documentation

◆ isEmpty()

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

Definition at line 204 of file ABI.h.

References clang::ReturnAdjustment::isEmpty(), and clang::ThisAdjustment::isEmpty().

Friends And Related Function Documentation

◆ operator==

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

Definition at line 199 of file ABI.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 191 of file ABI.h.

Referenced by dumpMicrosoftThunkAdjustment(), and mangleThunkThisAdjustment().

◆ Return

ReturnAdjustment clang::ThunkInfo::Return

◆ This

ThisAdjustment clang::ThunkInfo::This

The this pointer adjustment.

Definition at line 181 of file ABI.h.

Referenced by dumpMicrosoftThunkAdjustment(), clang::CodeGen::CodeGenFunction::EmitCallAndReturnForThunk(), and mangleThunkThisAdjustment().


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