Line data Source code
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 :
13 : namespace llvm {
14 : namespace pdb {
15 :
16 19 : NativeBuiltinSymbol::NativeBuiltinSymbol(NativeSession &PDBSession,
17 : SymIndexId Id, PDB_BuiltinType T,
18 19 : uint64_t L)
19 19 : : NativeRawSymbol(PDBSession, Id), Session(PDBSession), Type(T), Length(L) {
20 19 : }
21 :
22 57 : NativeBuiltinSymbol::~NativeBuiltinSymbol() {}
23 :
24 18 : std::unique_ptr<NativeRawSymbol> NativeBuiltinSymbol::clone() const {
25 36 : return llvm::make_unique<NativeBuiltinSymbol>(Session, SymbolId, Type, Length);
26 : }
27 :
28 0 : void NativeBuiltinSymbol::dump(raw_ostream &OS, int Indent) const {
29 : // TODO: Apparently nothing needs this yet.
30 0 : }
31 :
32 36 : PDB_SymType NativeBuiltinSymbol::getSymTag() const {
33 36 : return PDB_SymType::BuiltinType;
34 : }
35 :
36 9 : PDB_BuiltinType NativeBuiltinSymbol::getBuiltinType() const { return Type; }
37 :
38 0 : bool NativeBuiltinSymbol::isConstType() const { return false; }
39 :
40 18 : uint64_t NativeBuiltinSymbol::getLength() const { return Length; }
41 :
42 0 : bool NativeBuiltinSymbol::isUnalignedType() const { return false; }
43 :
44 0 : bool NativeBuiltinSymbol::isVolatileType() const { return false; }
45 :
46 : } // namespace pdb
47 : } // namespace llvm
|