• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- PDBSymbolThunk.h - Support for querying PDB thunks ---------------*-===//
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_PDBSYMBOLTHUNK_H
11 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTHUNK_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 PDBSymbolThunk : public PDBSymbol {
22 public:
23   PDBSymbolThunk(const IPDBSession &PDBSession,
24                  std::unique_ptr<IPDBRawSymbol> ThunkSymbol);
25 
26   DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Thunk)
27 
28   void dump(PDBSymDumper &Dumper) const override;
29 
30   FORWARD_SYMBOL_METHOD(getAccess)
31   FORWARD_SYMBOL_METHOD(getAddressOffset)
32   FORWARD_SYMBOL_METHOD(getAddressSection)
33   FORWARD_SYMBOL_METHOD(getClassParentId)
34   FORWARD_SYMBOL_METHOD(isConstType)
35   FORWARD_SYMBOL_METHOD(isIntroVirtualFunction)
36   FORWARD_SYMBOL_METHOD(isStatic)
37   FORWARD_SYMBOL_METHOD(getLength)
38   FORWARD_SYMBOL_METHOD(getLexicalParentId)
39   FORWARD_SYMBOL_METHOD(getName)
40   FORWARD_SYMBOL_METHOD(isPureVirtual)
41   FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress)
42   FORWARD_SYMBOL_METHOD(getSymIndexId)
43   FORWARD_SYMBOL_METHOD(getTargetOffset)
44   FORWARD_SYMBOL_METHOD(getTargetRelativeVirtualAddress)
45   FORWARD_SYMBOL_METHOD(getTargetVirtualAddress)
46   FORWARD_SYMBOL_METHOD(getTargetSection)
47   FORWARD_SYMBOL_METHOD(getThunkOrdinal)
48   FORWARD_SYMBOL_METHOD(getTypeId)
49   FORWARD_SYMBOL_METHOD(isUnalignedType)
50   FORWARD_SYMBOL_METHOD(isVirtual)
51   FORWARD_SYMBOL_METHOD(getVirtualAddress)
52   FORWARD_SYMBOL_METHOD(getVirtualBaseOffset)
53   FORWARD_SYMBOL_METHOD(isVolatileType)
54 };
55 } // namespace llvm
56 
57 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTHUNK_H
58