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>
51void dumpSymbolField(raw_ostream &OS, StringRef Name, T Value, int Indent) {
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
#define LLVM_ABI
Definition Compiler.h:213
DXIL Resource Access
block placement Basic Block Placement Stats
#define T
Function const char TargetMachine * Machine
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
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
raw_ostream & indent(unsigned NumSpaces)
indent - Insert 'NumSpaces' spaces.
ThunkOrdinal
These values correspond to the THUNK_ORDINAL enumeration.
Definition CodeView.h:537
PDB_Checksum
Specifies the hash algorithm that a source file from a PDB was hashed with.
Definition PDBTypes.h:119
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_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_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)
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)
codeview::SourceLanguage PDB_Lang
These values correspond to the CV_CFL_LANG enumeration, and are documented here: https://msdn....
Definition PDBTypes.h:224
std::unordered_map< PDB_SymType, int > TagStats
Definition PDBExtras.h:24
codeview::CallingConvention PDB_CallingConv
These values correspond to the CV_call_e enumeration, and are documented at the following locations: ...
Definition PDBTypes.h:220
This is an optimization pass for GlobalISel generic memory operations.
FunctionAddr VTableAddr uintptr_t uintptr_t Version
Definition InstrProf.h:302