Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===- IPDBSourceFile.h - base interface for a PDB source file --*- 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_IPDBSOURCEFILE_H
0010 #define LLVM_DEBUGINFO_PDB_IPDBSOURCEFILE_H
0011 
0012 #include "PDBTypes.h"
0013 #include <memory>
0014 #include <string>
0015 
0016 namespace llvm {
0017 class raw_ostream;
0018 
0019 namespace pdb {
0020 
0021 /// IPDBSourceFile defines an interface used to represent source files whose
0022 /// information are stored in the PDB.
0023 class IPDBSourceFile {
0024 public:
0025   virtual ~IPDBSourceFile();
0026 
0027   void dump(raw_ostream &OS, int Indent) const;
0028 
0029   virtual std::string getFileName() const = 0;
0030   virtual uint32_t getUniqueId() const = 0;
0031   virtual std::string getChecksum() const = 0;
0032   virtual PDB_Checksum getChecksumType() const = 0;
0033   virtual std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
0034   getCompilands() const = 0;
0035 };
0036 }
0037 }
0038 
0039 #endif