1//===- NativeTypeArray.h ------------------------------------------ C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEARRAY_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEARRAY_H
11
12#include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
13
14#include "llvm/DebugInfo/CodeView/TypeRecord.h"
15#include "llvm/DebugInfo/PDB/PDBTypes.h"
16
17namespace llvm {
18namespace pdb {
19
20class NativeSession;
21
22class NativeTypeArray : public NativeRawSymbol {
23public:
24 NativeTypeArray(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI,
25 codeview::ArrayRecord Record);
26 ~NativeTypeArray() override;
27
28 void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
29 PdbSymbolIdField RecurseIdFields) const override;
30
31 SymIndexId getArrayIndexTypeId() const override;
32
33 bool isConstType() const override;
34 bool isUnalignedType() const override;
35 bool isVolatileType() const override;
36
37 uint32_t getCount() const override;
38 SymIndexId getTypeId() const override;
39 uint64_t getLength() const override;
40
41protected:
42 codeview::ArrayRecord Record;
43 codeview::TypeIndex Index;
44};
45
46} // namespace pdb
47} // namespace llvm
48
49#endif
50

source code of llvm/include/llvm/DebugInfo/PDB/Native/NativeTypeArray.h