Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===- NativeSourceFile.h - Native source file implementation ---*- 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_NATIVESOURCEFILE_H
0010 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVESOURCEFILE_H
0011 
0012 #include "llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h"
0013 #include "llvm/DebugInfo/PDB/IPDBSourceFile.h"
0014 #include "llvm/DebugInfo/PDB/PDBTypes.h"
0015 
0016 namespace llvm {
0017 namespace pdb {
0018 class PDBSymbolCompiland;
0019 template <typename ChildType> class IPDBEnumChildren;
0020 class NativeSession;
0021 
0022 class NativeSourceFile : public IPDBSourceFile {
0023 public:
0024   explicit NativeSourceFile(NativeSession &Session, uint32_t FileId,
0025                             const codeview::FileChecksumEntry &Checksum);
0026 
0027   std::string getFileName() const override;
0028   uint32_t getUniqueId() const override;
0029   std::string getChecksum() const override;
0030   PDB_Checksum getChecksumType() const override;
0031   std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
0032   getCompilands() const override;
0033 
0034 private:
0035   NativeSession &Session;
0036   uint32_t FileId;
0037   const codeview::FileChecksumEntry Checksum;
0038 };
0039 } // namespace pdb
0040 } // namespace llvm
0041 #endif