Adrian McCarthy | 8d090fc | 2017-07-12 19:38:11 +0000 | [diff] [blame] | 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 | |
| 10 | #include "llvm/DebugInfo/PDB/Native/NativeBuiltinSymbol.h" |
| 11 | |
| 12 | #include "llvm/DebugInfo/PDB/Native/NativeSession.h" |
| 13 | |
| 14 | namespace llvm { |
| 15 | namespace pdb { |
| 16 | |
| 17 | NativeBuiltinSymbol::NativeBuiltinSymbol(NativeSession &PDBSession, |
| 18 | SymIndexId Id, PDB_BuiltinType T, |
| 19 | uint64_t L) |
| 20 | : NativeRawSymbol(PDBSession, Id), Session(PDBSession), Type(T), Length(L) { |
| 21 | } |
| 22 | |
| 23 | NativeBuiltinSymbol::~NativeBuiltinSymbol() {} |
| 24 | |
| 25 | std::unique_ptr<NativeRawSymbol> NativeBuiltinSymbol::clone() const { |
Reid Kleckner | 0962cb2 | 2017-07-12 19:46:35 +0000 | [diff] [blame] | 26 | return llvm::make_unique<NativeBuiltinSymbol>(Session, SymbolId, Type, Length); |
Adrian McCarthy | 8d090fc | 2017-07-12 19:38:11 +0000 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | void NativeBuiltinSymbol::dump(raw_ostream &OS, int Indent) const { |
| 30 | // TODO: Apparently nothing needs this yet. |
| 31 | } |
| 32 | |
| 33 | PDB_SymType NativeBuiltinSymbol::getSymTag() const { |
| 34 | return PDB_SymType::BuiltinType; |
| 35 | } |
| 36 | |
| 37 | PDB_BuiltinType NativeBuiltinSymbol::getBuiltinType() const { return Type; } |
| 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 |