1 //===- NativePublicSymbol.h - info about public symbols ---------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEPUBLICSYMBOL_H 10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEPUBLICSYMBOL_H 11 12 #include "llvm/DebugInfo/CodeView/SymbolRecord.h" 13 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h" 14 15 namespace llvm { 16 17 class raw_ostream; 18 namespace pdb { 19 class NativeSession; 20 21 class NativePublicSymbol : public NativeRawSymbol { 22 public: 23 NativePublicSymbol(NativeSession &Session, SymIndexId Id, 24 const codeview::PublicSym32 &Sym); 25 26 ~NativePublicSymbol() override; 27 28 void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, 29 PdbSymbolIdField RecurseIdFields) const override; 30 31 uint32_t getAddressOffset() const override; 32 uint32_t getAddressSection() const override; 33 std::string getName() const override; 34 uint32_t getRelativeVirtualAddress() const override; 35 uint64_t getVirtualAddress() const override; 36 37 protected: 38 const codeview::PublicSym32 Sym; 39 }; 40 41 } // namespace pdb 42 } // namespace llvm 43 44 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVEPUBLICSYMBOL_H 45