]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/llvm/DebugInfo/PDB/Native/NativeTypeBuiltin.h
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / include / llvm / DebugInfo / PDB / Native / NativeTypeBuiltin.h
1 //===- NativeTypeBuiltin.h ---------------------------------------- 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_NATIVE_NATIVETYPEBUILTIN_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEBUILTIN_H
12
13 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
14
15 #include "llvm/DebugInfo/PDB/PDBTypes.h"
16
17 namespace llvm {
18 namespace pdb {
19
20 class NativeSession;
21
22 class NativeTypeBuiltin : public NativeRawSymbol {
23 public:
24   NativeTypeBuiltin(NativeSession &PDBSession, SymIndexId Id,
25                     codeview::ModifierOptions Mods, PDB_BuiltinType T,
26                     uint64_t L);
27   ~NativeTypeBuiltin() override;
28
29   void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
30             PdbSymbolIdField RecurseIdFields) const override;
31
32   PDB_SymType getSymTag() const override;
33
34   PDB_BuiltinType getBuiltinType() const override;
35   bool isConstType() const override;
36   uint64_t getLength() const override;
37   bool isUnalignedType() const override;
38   bool isVolatileType() const override;
39
40 protected:
41   NativeSession &Session;
42   codeview::ModifierOptions Mods;
43   PDB_BuiltinType Type;
44   uint64_t Length;
45 };
46
47 } // namespace pdb
48 } // namespace llvm
49
50 #endif