clang  6.0.0svn
Macros | Functions
VTableBuilder.cpp File Reference
#include "clang/AST/VTableBuilder.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTDiagnostic.h"
#include "clang/AST/CXXInheritance.h"
#include "clang/AST/RecordLayout.h"
#include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/SetOperations.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cstdio>
Include dependency graph for VTableBuilder.cpp:

Go to the source code of this file.

Macros

#define DUMP_OVERRIDERS   0
 

Functions

static std::unique_ptr< VTableLayoutCreateVTableLayout (const ItaniumVTableBuilder &Builder)
 
static void GroupNewVirtualOverloads (const CXXRecordDecl *RD, SmallVector< const CXXMethodDecl *, 10 > &VirtualMethods)
 
static bool isDirectVBase (const CXXRecordDecl *Base, const CXXRecordDecl *RD)
 
static void PrintBasePath (const VPtrInfo::BasePath &Path, raw_ostream &Out)
 
static void dumpMicrosoftThunkAdjustment (const ThunkInfo &TI, raw_ostream &Out, bool ContinueFirstLine)
 
static bool setsIntersect (const llvm::SmallPtrSet< const CXXRecordDecl *, 4 > &A, ArrayRef< const CXXRecordDecl *> B)
 
static bool rebucketPaths (VPtrInfoVector &Paths)
 
static bool extendPath (VPtrInfo &P)
 
static void findPathsToSubobject (ASTContext &Context, const ASTRecordLayout &MostDerivedLayout, const CXXRecordDecl *RD, CharUnits Offset, BaseSubobject IntroducingObject, FullPathTy &FullPath, std::list< FullPathTy > &Paths)
 
static void removeRedundantPaths (std::list< FullPathTy > &FullPaths)
 
static CharUnits getOffsetOfFullPath (ASTContext &Context, const CXXRecordDecl *RD, const FullPathTy &FullPath)
 
static const FullPathTy * selectBestPath (ASTContext &Context, const CXXRecordDecl *RD, const VPtrInfo &Info, std::list< FullPathTy > &FullPaths)
 
static void computeFullPathsForVFTables (ASTContext &Context, const CXXRecordDecl *RD, VPtrInfoVector &Paths)
 

Macro Definition Documentation

◆ DUMP_OVERRIDERS

#define DUMP_OVERRIDERS   0

Definition at line 29 of file VTableBuilder.cpp.

Function Documentation

◆ computeFullPathsForVFTables()

static void computeFullPathsForVFTables ( ASTContext Context,
const CXXRecordDecl RD,
VPtrInfoVector Paths 
)
static

Definition at line 3530 of file VTableBuilder.cpp.

◆ CreateVTableLayout()

static std::unique_ptr<VTableLayout> CreateVTableLayout ( const ItaniumVTableBuilder &  Builder)
static

Definition at line 2273 of file VTableBuilder.cpp.

◆ dumpMicrosoftThunkAdjustment()

static void dumpMicrosoftThunkAdjustment ( const ThunkInfo TI,
raw_ostream &  Out,
bool  ContinueFirstLine 
)
static

◆ extendPath()

static bool extendPath ( VPtrInfo P)
static

◆ findPathsToSubobject()

static void findPathsToSubobject ( ASTContext Context,
const ASTRecordLayout MostDerivedLayout,
const CXXRecordDecl RD,
CharUnits  Offset,
BaseSubobject  IntroducingObject,
FullPathTy &  FullPath,
std::list< FullPathTy > &  Paths 
)
static

Definition at line 3385 of file VTableBuilder.cpp.

◆ getOffsetOfFullPath()

static CharUnits getOffsetOfFullPath ( ASTContext Context,
const CXXRecordDecl RD,
const FullPathTy &  FullPath 
)
static

Definition at line 3427 of file VTableBuilder.cpp.

◆ GroupNewVirtualOverloads()

static void GroupNewVirtualOverloads ( const CXXRecordDecl RD,
SmallVector< const CXXMethodDecl *, 10 > &  VirtualMethods 
)
static

Definition at line 2860 of file VTableBuilder.cpp.

References clang::DeclContext::decls().

◆ isDirectVBase()

static bool isDirectVBase ( const CXXRecordDecl Base,
const CXXRecordDecl RD 
)
static

◆ PrintBasePath()

static void PrintBasePath ( const VPtrInfo::BasePath Path,
raw_ostream &  Out 
)
static

Definition at line 3059 of file VTableBuilder.cpp.

Referenced by dumpMicrosoftThunkAdjustment().

◆ rebucketPaths()

static bool rebucketPaths ( VPtrInfoVector Paths)
static

Definition at line 3341 of file VTableBuilder.cpp.

References clang::VPtrInfo::MangledPath, and P.

Referenced by setsIntersect().

◆ removeRedundantPaths()

static void removeRedundantPaths ( std::list< FullPathTy > &  FullPaths)
static

Definition at line 3411 of file VTableBuilder.cpp.

◆ selectBestPath()

static const FullPathTy* selectBestPath ( ASTContext Context,
const CXXRecordDecl RD,
const VPtrInfo Info,
std::list< FullPathTy > &  FullPaths 
)
static

Definition at line 3459 of file VTableBuilder.cpp.

◆ setsIntersect()

static bool setsIntersect ( const llvm::SmallPtrSet< const CXXRecordDecl *, 4 > &  A,
ArrayRef< const CXXRecordDecl *>  B 
)
static

Definition at line 3223 of file VTableBuilder.cpp.

References rebucketPaths().