1 //===- IPDBInjectedSource.h - base class for PDB injected file --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_IPDBINJECTEDSOURCE_H
11 #define LLVM_DEBUGINFO_PDB_IPDBINJECTEDSOURCE_H
14 #include "llvm/Support/raw_ostream.h"
23 /// IPDBInjectedSource defines an interface used to represent source files
24 /// which were injected directly into the PDB file during the compilation
25 /// process. This is used, for example, to add natvis files to a PDB, but
26 /// in theory could be used to add arbitrary source code.
27 class IPDBInjectedSource {
29 virtual ~IPDBInjectedSource();
31 virtual uint32_t getCrc32() const = 0;
32 virtual uint64_t getCodeByteSize() const = 0;
33 virtual std::string getFileName() const = 0;
34 virtual std::string getObjectFileName() const = 0;
35 virtual std::string getVirtualFileName() const = 0;
36 virtual PDB_SourceCompression getCompression() const = 0;
37 virtual std::string getCode() const = 0;
42 #endif // LLVM_DEBUGINFO_PDB_IPDBINJECTEDSOURCE_H