LLVM  6.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 "IPDBSession.h"
14 #include "PDBSymbol.h"
15 #include "PDBSymbolTypeBaseClass.h"
16 #include "PDBTypes.h"
17 
18 namespace llvm {
19 
20 class raw_ostream;
21 
22 namespace pdb {
23 
24 class PDBSymbolTypeUDT : public PDBSymbol {
25 public:
26  PDBSymbolTypeUDT(const IPDBSession &PDBSession,
27  std::unique_ptr<IPDBRawSymbol> UDTSymbol);
28 
29  std::unique_ptr<PDBSymbolTypeUDT> clone() const {
31  getSymIndexId());
32  }
33 
35 
36  void dump(PDBSymDumper &Dumper) const override;
37 
38  FORWARD_SYMBOL_ID_METHOD(getClassParent)
39  FORWARD_SYMBOL_ID_METHOD(getUnmodifiedType)
40  FORWARD_SYMBOL_METHOD(hasConstructor)
41  FORWARD_SYMBOL_METHOD(isConstType)
42  FORWARD_SYMBOL_METHOD(hasAssignmentOperator)
43  FORWARD_SYMBOL_METHOD(hasCastOperator)
44  FORWARD_SYMBOL_METHOD(hasNestedTypes)
45  FORWARD_SYMBOL_METHOD(getLength)
46  FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
48  FORWARD_SYMBOL_METHOD(isNested)
49  FORWARD_SYMBOL_METHOD(hasOverloadedOperator)
50  FORWARD_SYMBOL_METHOD(isPacked)
51  FORWARD_SYMBOL_METHOD(isScoped)
52  FORWARD_SYMBOL_METHOD(getUdtKind)
53  FORWARD_SYMBOL_METHOD(isUnalignedType)
54  FORWARD_SYMBOL_ID_METHOD(getVirtualTableShape)
55  FORWARD_SYMBOL_METHOD(isVolatileType)
56 };
57 }
58 } // namespace llvm
59 
60 #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:36
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