• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/CodeView.h"
13 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
14 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
15 #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
16 
17 namespace llvm {
18 namespace pdb {
19 
20 class NativePublicSymbol : public NativeRawSymbol {
21 public:
22   NativePublicSymbol(NativeSession &Session, SymIndexId Id,
23                      const codeview::PublicSym32 &Sym);
24 
25   ~NativePublicSymbol() override;
26 
27   void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
28             PdbSymbolIdField RecurseIdFields) const override;
29 
30   uint32_t getAddressOffset() const override;
31   uint32_t getAddressSection() const override;
32   std::string getName() const override;
33   uint32_t getRelativeVirtualAddress() const override;
34   uint64_t getVirtualAddress() const override;
35 
36 protected:
37   const codeview::PublicSym32 Sym;
38 };
39 
40 } // namespace pdb
41 } // namespace llvm
42 
43 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVEPUBLICSYMBOL_H
44