Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===- NativeInlineSiteSymbol.h - info about inline sites -------*- 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_NATIVEINLINESITESYMBOL_H
0010 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEINLINESITESYMBOL_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 namespace pdb {
0019 
0020 class NativeSession;
0021 
0022 class NativeInlineSiteSymbol : public NativeRawSymbol {
0023 public:
0024   NativeInlineSiteSymbol(NativeSession &Session, SymIndexId Id,
0025                          const codeview::InlineSiteSym &Sym,
0026                          uint64_t ParentAddr);
0027 
0028   ~NativeInlineSiteSymbol() override;
0029 
0030   void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
0031             PdbSymbolIdField RecurseIdFields) const override;
0032 
0033   std::string getName() const override;
0034   std::unique_ptr<IPDBEnumLineNumbers>
0035   findInlineeLinesByVA(uint64_t VA, uint32_t Length) const override;
0036 
0037 private:
0038   const codeview::InlineSiteSym Sym;
0039   uint64_t ParentAddr;
0040 
0041   void getLineOffset(uint32_t OffsetInFunc, uint32_t &LineOffset,
0042                      uint32_t &FileOffset) const;
0043 };
0044 
0045 } // namespace pdb
0046 } // namespace llvm
0047 
0048 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVEINLINESITESYMBOL_H