1 //===- PDBSymbolThunk.h - Support for querying PDB thunks ---------------*-===//
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_PDBSYMBOLTHUNK_H
10 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTHUNK_H
11 
12 #include "PDBSymbol.h"
13 #include "PDBTypes.h"
14 
15 namespace llvm {
16 
17 namespace pdb {
18 
19 class PDBSymbolThunk : public PDBSymbol {
20   DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Thunk)
21 public:
22   void dump(PDBSymDumper &Dumper) const override;
23 
24   FORWARD_SYMBOL_METHOD(getAccess)
25   FORWARD_SYMBOL_METHOD(getAddressOffset)
26   FORWARD_SYMBOL_METHOD(getAddressSection)
27   FORWARD_SYMBOL_ID_METHOD(getClassParent)
28   FORWARD_SYMBOL_METHOD(isConstType)
29   FORWARD_SYMBOL_METHOD(isIntroVirtualFunction)
30   FORWARD_SYMBOL_METHOD(isStatic)
31   FORWARD_SYMBOL_METHOD(getLength)
32   FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
33   FORWARD_SYMBOL_METHOD(getName)
34   FORWARD_SYMBOL_METHOD(isPureVirtual)
35   FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress)
36   FORWARD_SYMBOL_METHOD(getTargetOffset)
37   FORWARD_SYMBOL_METHOD(getTargetRelativeVirtualAddress)
38   FORWARD_SYMBOL_METHOD(getTargetVirtualAddress)
39   FORWARD_SYMBOL_METHOD(getTargetSection)
40   FORWARD_SYMBOL_METHOD(getThunkOrdinal)
41   FORWARD_SYMBOL_ID_METHOD(getType)
42   FORWARD_SYMBOL_METHOD(isUnalignedType)
43   FORWARD_SYMBOL_METHOD(isVirtual)
44   FORWARD_SYMBOL_METHOD(getVirtualAddress)
45   FORWARD_SYMBOL_METHOD(getVirtualBaseOffset)
46   FORWARD_SYMBOL_METHOD(isVolatileType)
47 };
48 } // namespace pdb
49 } // namespace llvm
50 
51 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTHUNK_H
52