LLDB  mainline
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lldb_private::repro::ObjectToIndex Class Reference

Maps an object to an index for serialization. More...

#include <ReproducerInstrumentation.h>

Collaboration diagram for lldb_private::repro::ObjectToIndex:
Collaboration graph

Public Member Functions

template<typename T >
unsigned GetIndexForObject (T *t)

Private Member Functions

unsigned GetIndexForObjectImpl (const void *object)

Private Attributes

llvm::DenseMap< const void *, unsigned > m_mapping

Detailed Description

Maps an object to an index for serialization.

Indices are unique and incremented for every new object.

Indices start at 1 in order to differentiate with an invalid index (0) in the serialized buffer.

Definition at line 593 of file ReproducerInstrumentation.h.

Member Function Documentation

◆ GetIndexForObject()

template<typename T >
unsigned lldb_private::repro::ObjectToIndex::GetIndexForObject ( T *  t)

◆ GetIndexForObjectImpl()

unsigned ObjectToIndex::GetIndexForObjectImpl ( const void *  object)

Definition at line 190 of file ReproducerInstrumentation.cpp.

Referenced by GetIndexForObject().

Member Data Documentation

◆ m_mapping

llvm::DenseMap<const void *, unsigned> lldb_private::repro::ObjectToIndex::m_mapping

Definition at line 602 of file ReproducerInstrumentation.h.

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