• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- PDBExtras.h - helper functions and classes for PDBs -------*- C++-*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_DEBUGINFO_PDB_PDBEXTRAS_H
11 #define LLVM_DEBUGINFO_PDB_PDBEXTRAS_H
12 
13 #include "PDBTypes.h"
14 #include "llvm/DebugInfo/CodeView/CodeView.h"
15 #include "llvm/Support/raw_ostream.h"
16 #include <unordered_map>
17 
18 namespace llvm {
19 
20 namespace pdb {
21 typedef std::unordered_map<PDB_SymType, int> TagStats;
22 
23 raw_ostream &operator<<(raw_ostream &OS, const PDB_VariantType &Value);
24 raw_ostream &operator<<(raw_ostream &OS, const PDB_CallingConv &Conv);
25 raw_ostream &operator<<(raw_ostream &OS, const PDB_DataKind &Data);
26 raw_ostream &operator<<(raw_ostream &OS, const codeview::RegisterId &Reg);
27 raw_ostream &operator<<(raw_ostream &OS, const PDB_LocType &Loc);
28 raw_ostream &operator<<(raw_ostream &OS, const codeview::ThunkOrdinal &Thunk);
29 raw_ostream &operator<<(raw_ostream &OS, const PDB_Checksum &Checksum);
30 raw_ostream &operator<<(raw_ostream &OS, const PDB_Lang &Lang);
31 raw_ostream &operator<<(raw_ostream &OS, const PDB_SymType &Tag);
32 raw_ostream &operator<<(raw_ostream &OS, const PDB_MemberAccess &Access);
33 raw_ostream &operator<<(raw_ostream &OS, const PDB_UdtType &Type);
34 raw_ostream &operator<<(raw_ostream &OS, const PDB_UniqueId &Id);
35 raw_ostream &operator<<(raw_ostream &OS, const PDB_Machine &Machine);
36 
37 raw_ostream &operator<<(raw_ostream &OS, const Variant &Value);
38 raw_ostream &operator<<(raw_ostream &OS, const VersionInfo &Version);
39 raw_ostream &operator<<(raw_ostream &OS, const TagStats &Stats);
40 }
41 }
42 
43 #endif
44