[lld] [LTO][ELF][lld] Use unique string saver in ELF bitcode symbol parsing (PR #106670)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 00:47:47 PDT 2024


================
@@ -335,6 +339,12 @@ class BitcodeFile : public InputFile {
   void postParse();
   std::unique_ptr<llvm::lto::InputFile> obj;
   std::vector<bool> keptComdats;
+
+private:
+  StringRef saved_symbol(const char *S);
----------------
minglotus-6 wrote:

Use savers in linker context and undo header changes.

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


More information about the llvm-commits mailing list