//===-- PdbSymUid.h ---------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // A unique identification scheme for Pdb records. // The scheme is to partition a 64-bit integer into an 8-bit tag field, which // will contain some value from the PDB_SymType enumeration. The format of the // other 48-bits depend on the tag, but must be sufficient to locate the // corresponding entry in the underlying PDB file quickly. For example, for // a compile unit, we use 2 bytes to represent the index, which allows fast // access to the compile unit's information. //===----------------------------------------------------------------------===// #ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_PDBSYMUID_H #define LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_PDBSYMUID_H #include "llvm/DebugInfo/CodeView/SymbolRecord.h" #include "llvm/DebugInfo/PDB/PDBTypes.h" #include "llvm/Support/Compiler.h" #include "lldb/Utility/LLDBAssert.h" #include "lldb/lldb-types.h" namespace lldb_private { namespace npdb { enum class PdbSymUidKind : uint8_t { … }; struct PdbCompilandId { … }; struct PdbCompilandSymId { … }; struct PdbGlobalSymId { … }; struct PdbTypeSymId { … }; struct PdbFieldListMemberId { … }; class PdbSymUid { … }; template <typename T> uint64_t toOpaqueUid(const T &cid) { … } struct SymbolAndUid { … }; } // namespace npdb } // namespace lldb_private #endif