LLVM  6.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 
13 
14 namespace llvm {
15 namespace pdb {
16 
19  uint64_t L)
20  : NativeRawSymbol(PDBSession, Id), Session(PDBSession), Type(T), Length(L) {
21 }
22 
24 
25 std::unique_ptr<NativeRawSymbol> NativeBuiltinSymbol::clone() const {
26  return llvm::make_unique<NativeBuiltinSymbol>(Session, SymbolId, Type, Length);
27 }
28 
29 void NativeBuiltinSymbol::dump(raw_ostream &OS, int Indent) const {
30  // TODO: Apparently nothing needs this yet.
31 }
32 
35 }
36 
38 
39 bool NativeBuiltinSymbol::isConstType() const { return false; }
40 
41 uint64_t NativeBuiltinSymbol::getLength() const { return Length; }
42 
43 bool NativeBuiltinSymbol::isUnalignedType() const { return false; }
44 
45 bool NativeBuiltinSymbol::isVolatileType() const { return false; }
46 
47 } // namespace pdb
48 } // 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:162
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:228
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44