1 //===- PDBExtras.h - helper functions and classes for PDBs -------*- C++-*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_PDBEXTRAS_H
11 #define LLVM_DEBUGINFO_PDB_PDBEXTRAS_H
13 #include <unordered_map>
17 #include "llvm/Support/raw_ostream.h"
20 typedef std::unordered_map<PDB_SymType, int> TagStats;
22 struct stream_indent {
23 stream_indent(int IndentWidth) : Width(IndentWidth) {}
26 raw_ostream &operator<<(raw_ostream &OS, const stream_indent &Indent);
28 raw_ostream &operator<<(raw_ostream &OS, const PDB_RegisterId &Reg);
29 raw_ostream &operator<<(raw_ostream &OS, const PDB_LocType &Loc);
30 raw_ostream &operator<<(raw_ostream &OS, const PDB_ThunkOrdinal &Thunk);
31 raw_ostream &operator<<(raw_ostream &OS, const PDB_Checksum &Checksum);
32 raw_ostream &operator<<(raw_ostream &OS, const PDB_Lang &Lang);
33 raw_ostream &operator<<(raw_ostream &OS, const PDB_SymType &Tag);
34 raw_ostream &operator<<(raw_ostream &OS, const PDB_UniqueId &Id);
35 raw_ostream &operator<<(raw_ostream &OS, const VersionInfo &Version);
36 raw_ostream &operator<<(raw_ostream &OS, const TagStats &Stats);