[InstCombine] Signed saturation patterns
[llvm-complete.git] / include / llvm / DebugInfo / PDB / DIA / DIASourceFile.h
blob96edfc9f9e2910b76eaa84e193ff7bddb6460dd4
1 //===- DIASourceFile.h - DIA implementation of IPDBSourceFile ---*- 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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIASOURCEFILE_H
10 #define LLVM_DEBUGINFO_PDB_DIA_DIASOURCEFILE_H
12 #include "DIASupport.h"
13 #include "llvm/DebugInfo/PDB/IPDBSourceFile.h"
15 namespace llvm {
16 namespace pdb {
17 class DIASession;
19 class DIASourceFile : public IPDBSourceFile {
20 public:
21 explicit DIASourceFile(const DIASession &Session,
22 CComPtr<IDiaSourceFile> DiaSourceFile);
24 std::string getFileName() const override;
25 uint32_t getUniqueId() const override;
26 std::string getChecksum() const override;
27 PDB_Checksum getChecksumType() const override;
28 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
29 getCompilands() const override;
31 CComPtr<IDiaSourceFile> getDiaFile() const { return SourceFile; }
33 private:
34 const DIASession &Session;
35 CComPtr<IDiaSourceFile> SourceFile;
40 #endif