LLVM  10.0.0svn
PDBSymbolExe.h
Go to the documentation of this file.
1 //===- PDBSymbolExe.h - Accessors for querying executables in a PDB ----*-===//
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_PDBSYMBOLEXE_H
10 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLEXE_H
11 
12 #include "PDBSymbol.h"
13 #include "PDBTypes.h"
14 
15 namespace llvm {
16 
17 class raw_ostream;
18 
19 namespace pdb {
20 
21 class PDBSymbolExe : public PDBSymbol {
23 public:
24  void dump(PDBSymDumper &Dumper) const override;
25 
26  FORWARD_SYMBOL_METHOD(getAge)
27  FORWARD_SYMBOL_METHOD(getGuid)
28  FORWARD_SYMBOL_METHOD(hasCTypes)
29  FORWARD_SYMBOL_METHOD(hasPrivateSymbols)
33  FORWARD_SYMBOL_METHOD(getSymbolsFileName)
34 
36 
37 private:
38  void dumpChildren(raw_ostream &OS, StringRef Label, PDB_SymType ChildType,
39  int Indent) const;
40 };
41 } // namespace llvm
42 }
43 
44 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLEXE_H
#define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)
Definition: PDBSymbol.h:50
This class represents lattice values for constants.
Definition: AllocatorList.h:23
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
uint32_t getPointerByteSize() const
static StringRef getName(Value *V)
#define FORWARD_SYMBOL_METHOD(MethodName)
Definition: PDBSymbol.h:19
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:241
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e...
Definition: PDBSymbol.h:73
COFF::MachineTypes getMachineType(StringRef S)
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:48
static std::string getSignature(FunctionType *FTy)