clang
10.0.0svn
|
#include "clang/AST/VTableBuilder.h"
Public Member Functions | |
MicrosoftVTableContext (ASTContext &Context) | |
~MicrosoftVTableContext () override | |
const VPtrInfoVector & | getVFPtrOffsets (const CXXRecordDecl *RD) |
const VTableLayout & | getVFTableLayout (const CXXRecordDecl *RD, CharUnits VFPtrOffset) |
MethodVFTableLocation | getMethodVFTableLocation (GlobalDecl GD) |
const ThunkInfoVectorTy * | getThunkInfo (GlobalDecl GD) override |
unsigned | getVBTableIndex (const CXXRecordDecl *Derived, const CXXRecordDecl *VBase) |
Returns the index of VBase in the vbtable of Derived. More... | |
const VPtrInfoVector & | enumerateVBTables (const CXXRecordDecl *RD) |
![]() | |
bool | isMicrosoft () const |
virtual | ~VTableContextBase () |
Static Public Member Functions | |
static bool | classof (const VTableContextBase *VT) |
Additional Inherited Members | |
![]() | |
typedef SmallVector< ThunkInfo, 1 > | ThunkInfoVectorTy |
![]() | |
bool | IsMicrosoftABI |
![]() | |
typedef llvm::DenseMap< const CXXMethodDecl *, ThunkInfoVectorTy > | ThunksMapTy |
![]() | |
VTableContextBase (bool MS) | |
![]() | |
ThunksMapTy | Thunks |
Contains all thunks that a given method decl will need. More... | |
Definition at line 508 of file VTableBuilder.h.
|
inline |
Definition at line 545 of file VTableBuilder.h.
|
override |
Definition at line 3368 of file VTableBuilder.cpp.
|
inlinestatic |
Definition at line 574 of file VTableBuilder.h.
References clang::VTableContextBase::isMicrosoft().
const VPtrInfoVector & MicrosoftVTableContext::enumerateVBTables | ( | const CXXRecordDecl * | RD | ) |
Definition at line 3708 of file VTableBuilder.cpp.
MethodVFTableLocation MicrosoftVTableContext::getMethodVFTableLocation | ( | GlobalDecl | GD | ) |
Definition at line 3731 of file VTableBuilder.cpp.
References clang::Dtor_Deleting, clang::GlobalDecl::getCanonicalDecl(), clang::GlobalDecl::getDecl(), and clang::GlobalDecl::getDtorType().
|
inlineoverridevirtual |
Reimplemented from clang::VTableContextBase.
Definition at line 557 of file VTableBuilder.h.
References clang::Dtor_Complete, clang::GlobalDecl::getDecl(), clang::GlobalDecl::getDtorType(), and clang::VTableContextBase::getThunkInfo().
unsigned MicrosoftVTableContext::getVBTableIndex | ( | const CXXRecordDecl * | Derived, |
const CXXRecordDecl * | VBase | ||
) |
Returns the index of VBase in the vbtable of Derived.
VBase must be a morally virtual base of Derived. The vbtable is an array of i32 offsets. The first entry is a self entry, and the rest are offsets from the vbptr to virtual bases.
Definition at line 3700 of file VTableBuilder.cpp.
References clang::VirtualBaseInfo::VBTableIndices.
Referenced by decomposeTypeForEH(), and detectAmbiguousBases().
const VPtrInfoVector & MicrosoftVTableContext::getVFPtrOffsets | ( | const CXXRecordDecl * | RD | ) |
Definition at line 3713 of file VTableBuilder.cpp.
Referenced by hasDefaultCXXMethodCC(), and mangleVFTableName().
const VTableLayout & MicrosoftVTableContext::getVFTableLayout | ( | const CXXRecordDecl * | RD, |
CharUnits | VFPtrOffset | ||
) |
Definition at line 3721 of file VTableBuilder.cpp.
Referenced by hasDefaultCXXMethodCC().