LLVM: lib/DebugInfo/PDB/Native/NativeSourceFile.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

14

15using namespace llvm;

17

20 : Session(Session), FileId(FileId), Checksum(Checksum) {}

21

24 if (!ST) {

26 return "";

27 }

28 auto FileName = ST->getStringTable().getString(Checksum.FileNameOffset);

29 if (!FileName) {

31 return "";

32 }

33

34 return std::string(FileName.get());

35}

36

38

40 return toStringRef(Checksum.Checksum).str();

41}

42

45}

46

47std::unique_ptr<IPDBEnumChildren>

49 return nullptr;

50}

std::string str() const

str - Get the contents as an std::string.

std::string getChecksum() const override

NativeSourceFile(NativeSession &Session, uint32_t FileId, const codeview::FileChecksumEntry &Checksum)

PDB_Checksum getChecksumType() const override

std::string getFileName() const override

std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > getCompilands() const override

uint32_t getUniqueId() const override

Expected< PDBStringTable & > getStringTable()

PDB_Checksum

Specifies the hash algorithm that a source file from a PDB was hashed with.

This is an optimization pass for GlobalISel generic memory operations.

void consumeError(Error Err)

Consume a Error without doing anything.

ArrayRef< uint8_t > Checksum