diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
| commit | 044eb2f6afba375a914ac9d8024f8f5142bb912e (patch) | |
| tree | 1475247dc9f9fe5be155ebd4c9069c75aadf8c20 /include/llvm/DebugInfo/CodeView/StringsAndChecksums.h | |
| parent | eb70dddbd77e120e5d490bd8fbe7ff3f8fa81c6b (diff) | |
Notes
Diffstat (limited to 'include/llvm/DebugInfo/CodeView/StringsAndChecksums.h')
| -rw-r--r-- | include/llvm/DebugInfo/CodeView/StringsAndChecksums.h | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/DebugInfo/CodeView/StringsAndChecksums.h b/include/llvm/DebugInfo/CodeView/StringsAndChecksums.h index 1a8388224665..22a333e631a0 100644 --- a/include/llvm/DebugInfo/CodeView/StringsAndChecksums.h +++ b/include/llvm/DebugInfo/CodeView/StringsAndChecksums.h @@ -31,8 +31,13 @@ public:    StringsAndChecksumsRef(const DebugStringTableSubsectionRef &Strings,                           const DebugChecksumsSubsectionRef &Checksums); +  void setStrings(const DebugStringTableSubsectionRef &Strings);    void setChecksums(const DebugChecksumsSubsectionRef &CS); +  void reset(); +  void resetStrings(); +  void resetChecksums(); +    template <typename T> void initialize(T &&FragmentRange) {      for (const DebugSubsectionRecord &R : FragmentRange) {        if (Strings && Checksums) @@ -67,8 +72,8 @@ private:    void initializeStrings(const DebugSubsectionRecord &SR);    void initializeChecksums(const DebugSubsectionRecord &FCR); -  std::unique_ptr<DebugStringTableSubsectionRef> OwnedStrings; -  std::unique_ptr<DebugChecksumsSubsectionRef> OwnedChecksums; +  std::shared_ptr<DebugStringTableSubsectionRef> OwnedStrings; +  std::shared_ptr<DebugChecksumsSubsectionRef> OwnedChecksums;    const DebugStringTableSubsectionRef *Strings = nullptr;    const DebugChecksumsSubsectionRef *Checksums = nullptr;  | 
