LLVM  10.0.0svn
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 
11 
12 using namespace llvm;
13 using namespace llvm::codeview;
14 using namespace llvm::pdb;
15 
16 NativeTypeBuiltin::NativeTypeBuiltin(NativeSession &PDBSession, SymIndexId Id,
18  uint64_t L)
19  : NativeRawSymbol(PDBSession, PDB_SymType::BuiltinType, Id),
20  Session(PDBSession), Mods(Mods), Type(T), Length(L) {}
21 
23 
24 void NativeTypeBuiltin::dump(raw_ostream &OS, int Indent,
25  PdbSymbolIdField ShowIdFields,
26  PdbSymbolIdField RecurseIdFields) const {}
27 
30 }
31 
33 
35  return (Mods & ModifierOptions::Const) != ModifierOptions::None;
36 }
37 
38 uint64_t NativeTypeBuiltin::getLength() const { return Length; }
39 
41  return (Mods & ModifierOptions::Unaligned) != ModifierOptions::None;
42 }
43 
45  return (Mods & ModifierOptions::Volatile) != ModifierOptions::None;
46 }
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
This class represents lattice values for constants.
Definition: AllocatorList.h:23
codeview::ModifierOptions Mods
PDB_SymType getSymTag() const override
ModifierOptions
Equivalent to CV_modifier_t.
Definition: CodeView.h:299
bool isVolatileType() const override
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/bkedss5f.aspx.
Definition: PDBTypes.h:241
The instances of the Type class are immutable: once they are created, they are never changed...
Definition: Type.h:46
bool isUnalignedType() const override
uint64_t getLength() const override
PDB_BuiltinType getBuiltinType() const override
PDB_BuiltinType
These values correspond to the Basictype enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/4szdtzc3.aspx.
Definition: PDBTypes.h:333
bool isConstType() const override
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45