LLVM  3.7.0
PDBSymbolExe.h
Go to the documentation of this file.
1 //===- PDBSymbolExe.h - Accessors for querying executables in a PDB ----*-===//
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_PDBSYMBOLEXE_H
11 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLEXE_H
12 
13 #include "PDBSymbol.h"
14 #include "PDBTypes.h"
15 #include <string>
16 
17 namespace llvm {
18 
19 class raw_ostream;
20 
21 class PDBSymbolExe : public PDBSymbol {
22 public:
23  PDBSymbolExe(const IPDBSession &PDBSession,
24  std::unique_ptr<IPDBRawSymbol> ExeSymbol);
25 
27 
28  void dump(PDBSymDumper &Dumper) const override;
29 
30  FORWARD_SYMBOL_METHOD(getAge)
31  FORWARD_SYMBOL_METHOD(getGuid)
32  FORWARD_SYMBOL_METHOD(hasCTypes)
33  FORWARD_SYMBOL_METHOD(hasPrivateSymbols)
34  FORWARD_SYMBOL_METHOD(getMachineType)
36  FORWARD_SYMBOL_METHOD(getSignature)
37  FORWARD_SYMBOL_METHOD(getSymbolsFileName)
38  FORWARD_SYMBOL_METHOD(getSymIndexId)
39 
40 private:
41  void dumpChildren(raw_ostream &OS, StringRef Label, PDB_SymType ChildType,
42  int Indent) const;
43 };
44 } // namespace llvm
45 
46 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLEXE_H
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
#define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)
Definition: PDBSymbol.h:32
static StringRef getName(Value *V)
#define FORWARD_SYMBOL_METHOD(MethodName)
Definition: PDBSymbol.h:22
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e...
Definition: PDBSymbol.h:42
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
Definition: IPDBSession.h:24
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/bkedss5f.aspx.
Definition: PDBTypes.h:270
PDBSymbolExe(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > ExeSymbol)
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:38
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:40