LLVM 24.0.0git
NativeTypeTypedefAlias.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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_NATIVETYPETYPEDEFALIAS_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPETYPEDEFALIAS_H
11
16
17namespace llvm {
18
19class raw_ostream;
20
21namespace pdb {
22
23class NativeSession;
24
25/// A typedef from the TPI stream (LF_ALIAS).
27public:
30
34
36
37 void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
38 PdbSymbolIdField RecurseIdFields) const override;
39
40 std::string getName() const override;
41 SymIndexId getTypeId() const override;
42
43 SymIndexId getUnmodifiedTypeId() const override;
44 bool isConstType() const override;
45 bool isUnalignedType() const override;
46 bool isVolatileType() const override;
47
48protected:
51 std::optional<codeview::ModifierRecord> Modifiers;
52};
53
54} // namespace pdb
55} // namespace llvm
56
57#endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPETYPEDEFALIAS_H
#define LLVM_ABI
Definition Compiler.h:211
static StringRef getName(Value *V)
LF_ALIAS - A typedef where Name is typedef'd to UnderlyingType.
Definition TypeRecord.h:968
A 32-bit type reference.
Definition TypeIndex.h:97
NativeRawSymbol(NativeSession &PDBSession, PDB_SymType Tag, SymIndexId SymbolId)
NativeTypeTypedefAlias(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, codeview::AliasRecord Typedef)
SymIndexId getUnmodifiedTypeId() const override
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
std::optional< codeview::ModifierRecord > Modifiers
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
uint32_t SymIndexId
Definition PDBTypes.h:26
This is an optimization pass for GlobalISel generic memory operations.