Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:43:44

0001 //===- NativeFunctionSymbol.h - info about function symbols -----*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEFUNCTIONSYMBOL_H
0010 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEFUNCTIONSYMBOL_H
0011 
0012 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
0013 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
0014 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
0015 #include "llvm/DebugInfo/PDB/PDBTypes.h"
0016 
0017 namespace llvm {
0018 class raw_ostream;
0019 namespace pdb {
0020 
0021 class NativeSession;
0022 
0023 class NativeFunctionSymbol : public NativeRawSymbol {
0024 public:
0025   NativeFunctionSymbol(NativeSession &Session, SymIndexId Id,
0026                        const codeview::ProcSym &Sym, uint32_t RecordOffset);
0027 
0028   ~NativeFunctionSymbol() override;
0029 
0030   void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
0031             PdbSymbolIdField RecurseIdFields) const override;
0032 
0033   uint32_t getAddressOffset() const override;
0034   uint32_t getAddressSection() const override;
0035   std::string getName() const override;
0036   uint64_t getLength() const override;
0037   uint32_t getRelativeVirtualAddress() const override;
0038   uint64_t getVirtualAddress() const override;
0039   std::unique_ptr<IPDBEnumSymbols>
0040   findInlineFramesByVA(uint64_t VA) const override;
0041 
0042 protected:
0043   const codeview::ProcSym Sym;
0044   uint32_t RecordOffset = 0;
0045 };
0046 
0047 } // namespace pdb
0048 } // namespace llvm
0049 
0050 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVEFUNCTIONSYMBOL_H