LLVM  9.0.0svn
IPDBInjectedSource.h
Go to the documentation of this file.
1 //===- IPDBInjectedSource.h - base class for PDB injected file --*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_PDB_IPDBINJECTEDSOURCE_H
10 #define LLVM_DEBUGINFO_PDB_IPDBINJECTEDSOURCE_H
11 
12 #include "PDBTypes.h"
14 #include <memory>
15 #include <string>
16 
17 namespace llvm {
18 class raw_ostream;
19 
20 namespace pdb {
21 
22 /// IPDBInjectedSource defines an interface used to represent source files
23 /// which were injected directly into the PDB file during the compilation
24 /// process. This is used, for example, to add natvis files to a PDB, but
25 /// in theory could be used to add arbitrary source code.
27 public:
28  virtual ~IPDBInjectedSource();
29 
30  virtual uint32_t getCrc32() const = 0;
31  virtual uint64_t getCodeByteSize() const = 0;
32  virtual std::string getFileName() const = 0;
33  virtual std::string getObjectFileName() const = 0;
34  virtual std::string getVirtualFileName() const = 0;
35  virtual PDB_SourceCompression getCompression() const = 0;
36  virtual std::string getCode() const = 0;
37 };
38 } // namespace pdb
39 } // namespace llvm
40 
41 #endif // LLVM_DEBUGINFO_PDB_IPDBINJECTEDSOURCE_H
This class represents lattice values for constants.
Definition: AllocatorList.h:23
virtual uint32_t getCrc32() const =0
virtual std::string getObjectFileName() const =0
virtual std::string getFileName() const =0
IPDBInjectedSource defines an interface used to represent source files which were injected directly i...
virtual PDB_SourceCompression getCompression() const =0
virtual std::string getVirtualFileName() const =0
PDB_SourceCompression
Definition: PDBTypes.h:149
virtual uint64_t getCodeByteSize() const =0
virtual std::string getCode() const =0