1 //===- NativeBuiltinSymbol.h -------------------------------------- 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 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEBUILTINSYMBOL_H 11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEBUILTINSYMBOL_H 12 13 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h" 14 15 #include "llvm/DebugInfo/PDB/PDBTypes.h" 16 17 namespace llvm { 18 namespace pdb { 19 20 class NativeSession; 21 22 class NativeBuiltinSymbol : public NativeRawSymbol { 23 public: 24 NativeBuiltinSymbol(NativeSession &PDBSession, SymIndexId Id, 25 PDB_BuiltinType T, uint64_t L); 26 ~NativeBuiltinSymbol() override; 27 28 virtual std::unique_ptr<NativeRawSymbol> clone() const override; 29 30 void dump(raw_ostream &OS, int Indent) const override; 31 32 PDB_SymType getSymTag() const override; 33 34 PDB_BuiltinType getBuiltinType() const override; 35 bool isConstType() const override; 36 uint64_t getLength() const override; 37 bool isUnalignedType() const override; 38 bool isVolatileType() const override; 39 40 protected: 41 NativeSession &Session; 42 PDB_BuiltinType Type; 43 uint64_t Length; 44 }; 45 46 } // namespace pdb 47 } // namespace llvm 48 49 #endif 50