[PATCH] D87336: [NFC][ThinLTO] EmbedBitcodeSection doesn't need the Config

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 16:58:12 PDT 2020


tejohnson added inline comments.


================
Comment at: llvm/lib/LTO/LTOBackend.cpp:362
       new SmallVectorMemoryBuffer(std::move(Buffer)));
-  llvm::EmbedBitcodeInModule(M, Buf->getMemBufferRef(), /*EmbedBitcode*/ true,
+  llvm::EmbedBitcodeInModule(M, llvm::MemoryBufferRef(), /*EmbedBitcode*/ true,
                              /*EmbedMarker*/ false, /*CmdArgs*/ nullptr);
----------------
Why this change? Now Buf is unused.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87336/new/

https://reviews.llvm.org/D87336



More information about the llvm-commits mailing list