clang
7.0.0
|
#include "clang/AST/VTableBuilder.h"
Public Member Functions | |
ItaniumVTableContext (ASTContext &Context) | |
~ItaniumVTableContext () override | |
const VTableLayout & | getVTableLayout (const CXXRecordDecl *RD) |
std::unique_ptr< VTableLayout > | createConstructionVTableLayout (const CXXRecordDecl *MostDerivedClass, CharUnits MostDerivedClassOffset, bool MostDerivedClassIsVirtual, const CXXRecordDecl *LayoutClass) |
uint64_t | getMethodVTableIndex (GlobalDecl GD) |
Locate a virtual function in the vtable. More... | |
CharUnits | getVirtualBaseOffsetOffset (const CXXRecordDecl *RD, const CXXRecordDecl *VBase) |
Return the offset in chars (relative to the vtable address point) where the offset of the virtual base that contains the given base is stored, otherwise, if no virtual base contains the given class, return 0. More... | |
![]() | |
bool | isMicrosoft () const |
virtual | ~VTableContextBase () |
virtual const ThunkInfoVectorTy * | getThunkInfo (GlobalDecl GD) |
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 348 of file VTableBuilder.h.
ItaniumVTableContext::ItaniumVTableContext | ( | ASTContext & | Context | ) |
Definition at line 2220 of file VTableBuilder.cpp.
|
override |
Definition at line 2223 of file VTableBuilder.cpp.
|
inlinestatic |
Definition at line 403 of file VTableBuilder.h.
References clang::VTableContextBase::isMicrosoft().
std::unique_ptr< VTableLayout > ItaniumVTableContext::createConstructionVTableLayout | ( | const CXXRecordDecl * | MostDerivedClass, |
CharUnits | MostDerivedClassOffset, | ||
bool | MostDerivedClassIsVirtual, | ||
const CXXRecordDecl * | LayoutClass | ||
) |
Definition at line 2317 of file VTableBuilder.cpp.
uint64_t ItaniumVTableContext::getMethodVTableIndex | ( | GlobalDecl | GD | ) |
Locate a virtual function in the vtable.
Return the index (relative to the vtable address point) where the function pointer for the given virtual function is stored.
Definition at line 2225 of file VTableBuilder.cpp.
References clang::GlobalDecl::getCanonicalDecl().
CharUnits ItaniumVTableContext::getVirtualBaseOffsetOffset | ( | const CXXRecordDecl * | RD, |
const CXXRecordDecl * | VBase | ||
) |
Return the offset in chars (relative to the vtable address point) where the offset of the virtual base that contains the given base is stored, otherwise, if no virtual base contains the given class, return 0.
Base must be a virtual base class or an unambiguous base.
Definition at line 2241 of file VTableBuilder.cpp.
|
inline |
Definition at line 378 of file VTableBuilder.h.