LLVM  8.0.1
NativeTypeBuiltin.cpp
Go to the documentation of this file.
1 //===- NativeTypeBuiltin.cpp -------------------------------------- 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 
12 
13 using namespace llvm;
14 using namespace llvm::codeview;
15 using namespace llvm::pdb;
16 
17 NativeTypeBuiltin::NativeTypeBuiltin(NativeSession &PDBSession, SymIndexId Id,
19  uint64_t L)
20  : NativeRawSymbol(PDBSession, PDB_SymType::BuiltinType, Id),
21  Session(PDBSession), Mods(Mods), Type(T), Length(L) {}
22 
24 
26  PdbSymbolIdField ShowIdFields,
27  PdbSymbolIdField RecurseIdFields) const {}
28 
31 }
32 
34 
36  return (Mods & ModifierOptions::Const) != ModifierOptions::None;
37 }
38 
39 uint64_t NativeTypeBuiltin::getLength() const { return Length; }
40 
42  return (Mods & ModifierOptions::Unaligned) != ModifierOptions::None;
43 }
44 
46  return (Mods & ModifierOptions::Volatile) != ModifierOptions::None;
47 }
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
This class represents lattice values for constants.
Definition: AllocatorList.h:24
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:183
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:275
Definition: JSON.cpp:598
bool isConstType() const override
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:46