LLVM 22.0.0git
PDBExtras.h
Go to the documentation of this file.
1//===- PDBExtras.h - helper functions and classes for PDBs ------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_DEBUGINFO_PDB_PDBEXTRAS_H
10#define LLVM_DEBUGINFO_PDB_PDBEXTRAS_H
11
12#include "llvm/ADT/StringRef.h"
17#include <cstdint>
18#include <unordered_map>
19
20namespace llvm {
21
22namespace pdb {
23
24using TagStats = std::unordered_map<PDB_SymType, int>;
25
31 const llvm::codeview::CPURegister &CpuReg);
42
46
48 uint32_t Compression);
49
50template <typename T>
52 OS << "\n";
53 OS.indent(Indent);
54 OS << Name << ": " << Value;
55}
56
57} // end namespace pdb
58
59} // end namespace llvm
60
61#endif // LLVM_DEBUGINFO_PDB_PDBEXTRAS_H
COFF::MachineTypes Machine
Definition: COFFYAML.cpp:390
#define LLVM_ABI
Definition: Compiler.h:213
DXIL Resource Access
std::string Name
block placement Basic Block Placement Stats
raw_pwrite_stream & OS
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:55
The instances of the Type class are immutable: once they are created, they are never changed.
Definition: Type.h:45
LLVM Value Representation.
Definition: Value.h:75
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
CallingConvention
These values correspond to the CV_call_e enumeration, and are documented at the following locations: ...
Definition: CodeView.h:157
ThunkOrdinal
These values correspond to the THUNK_ORDINAL enumeration.
Definition: CodeView.h:537
SourceLanguage
These values correspond to the CV_CFL_LANG enumeration in the Microsoft Debug Interface Access SDK,...
Definition: CodeView.h:147
PDB_Checksum
Specifies the hash algorithm that a source file from a PDB was hashed with.
Definition: PDBTypes.h:119
std::unordered_map< PDB_SymType, int > TagStats
Definition: PDBExtras.h:24
void dumpSymbolField(raw_ostream &OS, StringRef Name, T Value, int Indent)
Definition: PDBExtras.h:51
PDB_BuiltinType
These values correspond to the Basictype enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:335
PDB_MemberAccess
Definition: PDBTypes.h:385
PDB_UdtType
These values correspond to the UdtKind enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:310
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:243
PDB_VariantType
Definition: PDBTypes.h:394
PDB_LocType
These values correspond to the LocationType enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:292
raw_ostream & operator<<(LinePrinter &Printer, const T &Item)
Definition: LinePrinter.h:153
PDB_DataKind
These values correspond to the DataKind enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:228
LLVM_ABI raw_ostream & dumpPDBSourceCompression(raw_ostream &OS, uint32_t Compression)
Definition: PDBExtras.cpp:344
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18