LLVM: lib/DebugInfo/CodeView/StringsAndChecksums.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
15#include
16
17using namespace llvm;
19
21
24 : Strings(&Strings) {}
25
29 : Strings(&Strings), Checksums(&Checksums) {}
30
31void StringsAndChecksumsRef::initializeStrings(
34 assert(!Strings && "Found a string table even though we already have one!");
35
36 OwnedStrings = std::make_shared();
38 Strings = OwnedStrings.get();
39}
40
45
47 OwnedStrings.reset();
48 Strings = nullptr;
49}
50
52 OwnedChecksums.reset();
53 Checksums = nullptr;
54}
55
58 OwnedStrings = std::make_shared();
59 *OwnedStrings = StringsRef;
60 Strings = OwnedStrings.get();
61}
62
65 OwnedChecksums = std::make_shared();
66 *OwnedChecksums = CS;
67 Checksums = OwnedChecksums.get();
68}
69
70void StringsAndChecksumsRef::initializeChecksums(
73 if (Checksums)
74 return;
75
76 OwnedChecksums = std::make_shared();
78 Checksums = OwnedChecksums.get();
79}
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
Represents a read-only view of a CodeView string table.
LLVM_ABI BinaryStreamRef getRecordData() const
LLVM_ABI DebugSubsectionKind kind() const
LLVM_ABI void setStrings(const DebugStringTableSubsectionRef &Strings)
Definition StringsAndChecksums.cpp:56
LLVM_ABI StringsAndChecksumsRef()
LLVM_ABI void setChecksums(const DebugChecksumsSubsectionRef &CS)
Definition StringsAndChecksums.cpp:63
LLVM_ABI void resetStrings()
Definition StringsAndChecksums.cpp:46
LLVM_ABI void reset()
Definition StringsAndChecksums.cpp:41
LLVM_ABI void resetChecksums()
Definition StringsAndChecksums.cpp:51
This is an optimization pass for GlobalISel generic memory operations.
void consumeError(Error Err)
Consume a Error without doing anything.