clang  6.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
clang::ItaniumVTableContext Class Reference

#include "clang/AST/VTableBuilder.h"

Inheritance diagram for clang::ItaniumVTableContext:
Inheritance graph
[legend]
Collaboration diagram for clang::ItaniumVTableContext:
Collaboration graph
[legend]

Public Member Functions

 ItaniumVTableContext (ASTContext &Context)
 
 ~ItaniumVTableContext () override
 
const VTableLayoutgetVTableLayout (const CXXRecordDecl *RD)
 
std::unique_ptr< VTableLayoutcreateConstructionVTableLayout (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...
 
- Public Member Functions inherited from clang::VTableContextBase
bool isMicrosoft () const
 
virtual ~VTableContextBase ()
 
virtual const ThunkInfoVectorTygetThunkInfo (GlobalDecl GD)
 

Static Public Member Functions

static bool classof (const VTableContextBase *VT)
 

Additional Inherited Members

- Public Types inherited from clang::VTableContextBase
typedef SmallVector< ThunkInfo, 1 > ThunkInfoVectorTy
 
- Public Attributes inherited from clang::VTableContextBase
bool IsMicrosoftABI
 
- Protected Types inherited from clang::VTableContextBase
typedef llvm::DenseMap< const CXXMethodDecl *, ThunkInfoVectorTyThunksMapTy
 
- Protected Member Functions inherited from clang::VTableContextBase
 VTableContextBase (bool MS)
 
- Protected Attributes inherited from clang::VTableContextBase
ThunksMapTy Thunks
 Contains all thunks that a given method decl will need. More...
 

Detailed Description

Definition at line 355 of file VTableBuilder.h.

Constructor & Destructor Documentation

◆ ItaniumVTableContext()

ItaniumVTableContext::ItaniumVTableContext ( ASTContext Context)

Definition at line 2225 of file VTableBuilder.cpp.

◆ ~ItaniumVTableContext()

ItaniumVTableContext::~ItaniumVTableContext ( )
override

Definition at line 2228 of file VTableBuilder.cpp.

Member Function Documentation

◆ classof()

static bool clang::ItaniumVTableContext::classof ( const VTableContextBase VT)
inlinestatic

Definition at line 410 of file VTableBuilder.h.

References clang::VTableContextBase::isMicrosoft().

◆ createConstructionVTableLayout()

std::unique_ptr< VTableLayout > ItaniumVTableContext::createConstructionVTableLayout ( const CXXRecordDecl MostDerivedClass,
CharUnits  MostDerivedClassOffset,
bool  MostDerivedClassIsVirtual,
const CXXRecordDecl LayoutClass 
)

Definition at line 2321 of file VTableBuilder.cpp.

◆ getMethodVTableIndex()

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 2230 of file VTableBuilder.cpp.

Referenced by BuildAppleKextVirtualCall().

◆ getVirtualBaseOffsetOffset()

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 2245 of file VTableBuilder.cpp.

◆ getVTableLayout()

const VTableLayout& clang::ItaniumVTableContext::getVTableLayout ( const CXXRecordDecl RD)
inline

Definition at line 385 of file VTableBuilder.h.

Referenced by BuildAppleKextVirtualCall().


The documentation for this class was generated from the following files: