[llvm] 10a43c4 - Fix localCache in gold plugin.

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 13:43:15 PST 2022


Author: Zequan Wu
Date: 2022-11-22T13:43:06-08:00
New Revision: 10a43c4641c20e0a50edc0ff99915c837a507cc1

URL: https://github.com/llvm/llvm-project/commit/10a43c4641c20e0a50edc0ff99915c837a507cc1
DIFF: https://github.com/llvm/llvm-project/commit/10a43c4641c20e0a50edc0ff99915c837a507cc1.diff

LOG: Fix localCache in gold plugin.

Added: 
    

Modified: 
    llvm/tools/gold/gold-plugin.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 2f2579f27120e..59cff41bf3c69 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -1099,7 +1099,8 @@ static std::vector<std::pair<SmallString<128>, bool>> runLTO() {
         std::make_unique<llvm::raw_fd_ostream>(FD, true));
   };
 
-  auto AddBuffer = [&](size_t Task, std::unique_ptr<MemoryBuffer> MB) {
+  auto AddBuffer = [&](size_t Task, const Twine &moduleName,
+                       std::unique_ptr<MemoryBuffer> MB) {
     *AddStream(Task)->OS << MB->getBuffer();
   };
 


        


More information about the llvm-commits mailing list