[llvm] [BOLT][DWARF][NFC] Fix DebugStrOffsetsWriter (PR #100672)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 10:28:08 PDT 2024


================
@@ -503,10 +503,15 @@ class DebugStrOffsetsWriter {
     return StrOffsetSectionWasModified;
   }
 
+  std::unordered_map<uint64_t, bool> &getDebugStrOffsetFinalized() {
+    return DebugStrOffsetFinalized;
+  }
+
 private:
   std::unique_ptr<DebugStrOffsetsBufferVector> StrOffsetsBuffer;
   std::unique_ptr<raw_svector_ostream> StrOffsetsStream;
   std::map<uint32_t, uint32_t> IndexToAddressMap;
+  std::unordered_map<uint64_t, bool> DebugStrOffsetFinalized;
----------------
ayermolo wrote:

This can be a set. Specifically llvm DenseSet

https://github.com/llvm/llvm-project/pull/100672


More information about the llvm-commits mailing list