LLVM 19.0.0git
NativeTypeBuiltin.cpp
Go to the documentation of this file.
1//===- NativeTypeBuiltin.cpp -------------------------------------- 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
10
11using namespace llvm;
12using namespace llvm::codeview;
13using namespace llvm::pdb;
14
17 uint64_t L)
18 : NativeRawSymbol(PDBSession, PDB_SymType::BuiltinType, Id),
19 Session(PDBSession), Mods(Mods), Type(T), Length(L) {}
20
22
24 PdbSymbolIdField ShowIdFields,
25 PdbSymbolIdField RecurseIdFields) const {}
26
29}
30
32
34 return (Mods & ModifierOptions::Const) != ModifierOptions::None;
35}
36
38
40 return (Mods & ModifierOptions::Unaligned) != ModifierOptions::None;
41}
42
44 return (Mods & ModifierOptions::Volatile) != ModifierOptions::None;
45}
raw_pwrite_stream & OS
The instances of the Type class are immutable: once they are created, they are never changed.
Definition: Type.h:45
PDB_BuiltinType getBuiltinType() const override
NativeTypeBuiltin(NativeSession &PDBSession, SymIndexId Id, codeview::ModifierOptions Mods, PDB_BuiltinType T, uint64_t L)
uint64_t getLength() const override
bool isUnalignedType() const override
bool isVolatileType() const override
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
PDB_SymType getSymTag() const override
bool isConstType() const override
codeview::ModifierOptions Mods
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
ModifierOptions
Equivalent to CV_modifier_t.
Definition: CodeView.h:311
PDB_BuiltinType
These values correspond to the Basictype enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:335
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:243
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Length
Definition: DWP.cpp:456