ffc7b6393124b9882a8d7fbdc37fcb890ad4a585
[oota-llvm.git] / include / llvm / DebugInfo / PDB / PDBSymbolTypePointer.h
1 //===- PDBSymbolTypePointer.h - pointer 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_PDBSYMBOLTYPEPOINTER_H
11 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEPOINTER_H
12
13 #include "PDBSymbol.h"
14 #include "PDBTypes.h"
15
16 namespace llvm {
17
18 class raw_ostream;
19
20 class PDBSymbolTypePointer : public PDBSymbol {
21 public:
22   PDBSymbolTypePointer(std::unique_ptr<IPDBRawSymbol> PointerTypeSymbol);
23
24   void dump(llvm::raw_ostream &OS) const override;
25
26   FORWARD_SYMBOL_METHOD(isConstType)
27   FORWARD_SYMBOL_METHOD(getLength)
28   FORWARD_SYMBOL_METHOD(getLexicalParentId)
29   FORWARD_SYMBOL_METHOD(isReference)
30   FORWARD_SYMBOL_METHOD(getSymIndexId)
31   FORWARD_SYMBOL_METHOD(getTypeId)
32   FORWARD_SYMBOL_METHOD(isUnalignedType)
33   FORWARD_SYMBOL_METHOD(isVolatileType)
34
35   static bool classof(const PDBSymbol *S) {
36     return S->getSymTag() == PDB_SymType::PointerType;
37   }
38 };
39
40 } // namespace llvm
41
42 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEPOINTER_H