LLVM  3.7.0
PDBSymbolThunk.h
Go to the documentation of this file.
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 
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)
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
#define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)
Definition: PDBSymbol.h:32
PDBSymbolThunk(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > ThunkSymbol)
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
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