LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::codeview::TypeHasher Class Reference

Private implementation so that we don't leak our DenseMap instantiations to users. More...

Public Member Functions

 TypeHasher (BumpPtrAllocator &RecordStorage)
 
void reset ()
 
TypeIndex getOrCreateRecord (ArrayRef< uint8_t > &Record, TypeIndex TI)
 Takes the bytes of type record, inserts them into the hash table, saves them, and returns a pointer to an identical stable type record along with its type index in the destination stream. More...
 

Detailed Description

Private implementation so that we don't leak our DenseMap instantiations to users.

Definition at line 79 of file TypeTableBuilder.cpp.

Constructor & Destructor Documentation

◆ TypeHasher()

llvm::codeview::TypeHasher::TypeHasher ( BumpPtrAllocator RecordStorage)
inline

Definition at line 97 of file TypeTableBuilder.cpp.

Member Function Documentation

◆ getOrCreateRecord()

TypeIndex TypeHasher::getOrCreateRecord ( ArrayRef< uint8_t > &  Record,
TypeIndex  TI 
)

Takes the bytes of type record, inserts them into the hash table, saves them, and returns a pointer to an identical stable type record along with its type index in the destination stream.

Definition at line 107 of file TypeTableBuilder.cpp.

References assert(), llvm::ArrayRef< T >::data(), llvm::hash_value(), llvm::makeArrayRef(), and llvm::ArrayRef< T >::size().

◆ reset()

void llvm::codeview::TypeHasher::reset ( )
inline

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