LLVM  8.0.0svn
PDBSymbolTypeUDT.h
Go to the documentation of this file.
1 //===- PDBSymbolTypeUDT.h - UDT type info -----------------------*- C++ -*-===//
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_PDBSYMBOLTYPEUDT_H
11 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEUDT_H
12 
13 #include "IPDBLineNumber.h"
14 #include "IPDBSession.h"
15 #include "PDBSymbol.h"
16 #include "PDBSymbolTypeBaseClass.h"
17 #include "PDBTypes.h"
18 
19 namespace llvm {
20 
21 class raw_ostream;
22 
23 namespace pdb {
24 
25 class PDBSymbolTypeUDT : public PDBSymbol {
26 public:
27  PDBSymbolTypeUDT(const IPDBSession &PDBSession,
28  std::unique_ptr<IPDBRawSymbol> UDTSymbol);
29 
30  std::unique_ptr<PDBSymbolTypeUDT> clone() const {
32  getSymIndexId());
33  }
34 
36 
37  void dump(PDBSymDumper &Dumper) const override;
38 
39  FORWARD_SYMBOL_ID_METHOD(getClassParent)
40  FORWARD_SYMBOL_ID_METHOD(getUnmodifiedType)
41  FORWARD_SYMBOL_METHOD(hasConstructor)
42  FORWARD_SYMBOL_METHOD(isConstType)
43  FORWARD_SYMBOL_METHOD(hasAssignmentOperator)
44  FORWARD_SYMBOL_METHOD(hasCastOperator)
45  FORWARD_SYMBOL_METHOD(hasNestedTypes)
46  FORWARD_SYMBOL_METHOD(getLength)
47  FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
49  FORWARD_SYMBOL_METHOD(getSrcLineOnTypeDefn)
50  FORWARD_SYMBOL_METHOD(isNested)
51  FORWARD_SYMBOL_METHOD(hasOverloadedOperator)
52  FORWARD_SYMBOL_METHOD(isPacked)
53  FORWARD_SYMBOL_METHOD(isScoped)
54  FORWARD_SYMBOL_METHOD(getUdtKind)
55  FORWARD_SYMBOL_METHOD(isUnalignedType)
56  FORWARD_SYMBOL_ID_METHOD(getVirtualTableShape)
57  FORWARD_SYMBOL_METHOD(isVolatileType)
58  FORWARD_SYMBOL_METHOD(getAccess)
59 };
60 }
61 } // namespace llvm
62 
63 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEUDT_H
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
Definition: IPDBSession.h:26
#define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)
Definition: PDBSymbol.h:51
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
const IPDBSession & getSession() const
Definition: PDBSymbol.h:121
PDBSymbolTypeUDT(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > UDTSymbol)
std::unique_ptr< PDBSymbolTypeUDT > clone() const
static StringRef getName(Value *V)
#define FORWARD_SYMBOL_METHOD(MethodName)
Definition: PDBSymbol.h:20
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
std::unique_ptr< T > getConcreteSymbolById(uint32_t SymbolId) const
Definition: IPDBSession.h:41
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e...
Definition: PDBSymbol.h:61
#define FORWARD_SYMBOL_ID_METHOD(MethodName)
Definition: PDBSymbol.h:39
uint32_t getSymIndexId() const
Definition: PDBSymbol.cpp:131