CodeGen: Factor out some of the bitset entry creation code. NFC.

llvm-svn: 239927
This commit is contained in:
Peter Collingbourne
2015-06-17 19:08:05 +00:00
parent 3d920eed5d
commit 86d34a72b3
3 changed files with 23 additions and 18 deletions

View File

@@ -1115,6 +1115,11 @@ public:
void EmitVTableBitSetEntries(llvm::GlobalVariable *VTable,
const VTableLayout &VTLayout);
/// Create a bitset entry for the given vtable.
llvm::MDTuple *CreateVTableBitSetEntry(llvm::GlobalVariable *VTable,
CharUnits Offset,
const CXXRecordDecl *RD);
/// \breif Get the declaration of std::terminate for the platform.
llvm::Constant *getTerminateFn();