diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-09-26 01:56:36 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-09-26 01:56:36 +0000 |
commit | bf1c5aeadc5d4bb7fca5b0ee12208a94971f8492 (patch) | |
tree | 2c274a03829caf5a83949e948ced2e5d36ce30f4 /lib/CodeGen/CGVTables.h | |
parent | 1d2b31710539d705a3850c9fc3aa1804c2a5efee (diff) |
Remove CodeGenVTables::ComputeVTableRelatedInformation dependency on CodeGen
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVTables.h')
-rw-r--r-- | lib/CodeGen/CGVTables.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/CodeGen/CGVTables.h b/lib/CodeGen/CGVTables.h index 6e96be7219..a29670b458 100644 --- a/lib/CodeGen/CGVTables.h +++ b/lib/CodeGen/CGVTables.h @@ -89,11 +89,8 @@ class CodeGenVTables { /// Thunks - Contains all thunks that a given method decl will need. ThunksMapTy Thunks; - // The layout entry and a bool indicating whether we've actually emitted - // the vtable. - typedef llvm::PointerIntPair<uint64_t *, 1, bool> VTableLayoutData; - typedef llvm::DenseMap<const CXXRecordDecl *, VTableLayoutData> - VTableLayoutMapTy; + // The layout entry. + typedef llvm::DenseMap<const CXXRecordDecl *, uint64_t *> VTableLayoutMapTy; /// VTableLayoutMap - Stores the vtable layout for all record decls. /// The layout is stored as an array of 64-bit integers, where the first @@ -122,13 +119,13 @@ class CodeGenVTables { uint64_t getNumVTableComponents(const CXXRecordDecl *RD) const { assert(VTableLayoutMap.count(RD) && "No vtable layout for this class!"); - return VTableLayoutMap.lookup(RD).getPointer()[0]; + return VTableLayoutMap.lookup(RD)[0]; } const uint64_t *getVTableComponentsData(const CXXRecordDecl *RD) const { assert(VTableLayoutMap.count(RD) && "No vtable layout for this class!"); - uint64_t *Components = VTableLayoutMap.lookup(RD).getPointer(); + uint64_t *Components = VTableLayoutMap.lookup(RD); return &Components[1]; } @@ -157,8 +154,7 @@ class CodeGenVTables { /// ComputeVTableRelatedInformation - Compute and store all vtable related /// information (vtable layout, vbase offset offsets, thunks etc) for the /// given record decl. - void ComputeVTableRelatedInformation(const CXXRecordDecl *RD, - bool VTableRequired); + void ComputeVTableRelatedInformation(const CXXRecordDecl *RD); /// CreateVTableInitializer - Create a vtable initializer for the given record /// decl. |