LLVM  7.0.0svn
NativeBuiltinSymbol.cpp
Go to the documentation of this file.
1 //===- NativeBuiltinSymbol.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 
11 
12 
13 namespace llvm {
14 namespace pdb {
15 
18  uint64_t L)
19  : NativeRawSymbol(PDBSession, Id), Session(PDBSession), Type(T), Length(L) {
20 }
21 
23 
24 std::unique_ptr<NativeRawSymbol> NativeBuiltinSymbol::clone() const {
25  return llvm::make_unique<NativeBuiltinSymbol>(Session, SymbolId, Type, Length);
26 }
27 
28 void NativeBuiltinSymbol::dump(raw_ostream &OS, int Indent) const {
29  // TODO: Apparently nothing needs this yet.
30 }
31 
34 }
35 
37 
38 bool NativeBuiltinSymbol::isConstType() const { return false; }
39 
40 uint64_t NativeBuiltinSymbol::getLength() const { return Length; }
41 
42 bool NativeBuiltinSymbol::isUnalignedType() const { return false; }
43 
44 bool NativeBuiltinSymbol::isVolatileType() const { return false; }
45 
46 } // namespace pdb
47 } // namespace llvm
PDB_BuiltinType getBuiltinType() const override
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
void dump(raw_ostream &OS, int Indent) const override
bool isUnalignedType() const override
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:163
The instances of the Type class are immutable: once they are created, they are never changed...
Definition: Type.h:46
PDB_SymType getSymTag() const override
NativeBuiltinSymbol(NativeSession &PDBSession, SymIndexId Id, PDB_BuiltinType T, uint64_t L)
virtual std::unique_ptr< NativeRawSymbol > clone() const override
uint64_t getLength() 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:229
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44