IPDBSourceFile.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //===- IPDBSourceFile.h - base interface for a PDB source file --*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef LLVM_DEBUGINFO_PDB_IPDBSOURCEFILE_H
  10. #define LLVM_DEBUGINFO_PDB_IPDBSOURCEFILE_H
  11. #include "PDBTypes.h"
  12. #include <memory>
  13. #include <string>
  14. namespace llvm {
  15. class raw_ostream;
  16. /// IPDBSourceFile defines an interface used to represent source files whose
  17. /// information are stored in the PDB.
  18. class IPDBSourceFile {
  19. public:
  20. virtual ~IPDBSourceFile();
  21. void dump(raw_ostream &OS, int Indent) const;
  22. virtual std::string getFileName() const = 0;
  23. virtual uint32_t getUniqueId() const = 0;
  24. virtual std::string getChecksum() const = 0;
  25. virtual PDB_Checksum getChecksumType() const = 0;
  26. virtual std::unique_ptr<IPDBEnumSymbols> getCompilands() const = 0;
  27. };
  28. }
  29. #endif