OSDN Git Service

[ThinLTO/gold] Pass import lists by reference (NFC)
authorTeresa Johnson <tejohnson@google.com>
Fri, 3 Jun 2016 20:46:32 +0000 (20:46 +0000)
committerTeresa Johnson <tejohnson@google.com>
Fri, 3 Jun 2016 20:46:32 +0000 (20:46 +0000)
In my earlier patch r271690 I missed passing a map by reference in one
place.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271732 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index bdacf0d..9144e2b 100644 (file)
@@ -1199,7 +1199,7 @@ static void
 thinLTOBackends(raw_fd_ostream *ApiFile,
                 const ModuleSummaryIndex &CombinedIndex,
                 StringMap<MemoryBufferRef> &ModuleMap,
-                StringMap<FunctionImporter::ImportMapTy> ImportLists) {
+                StringMap<FunctionImporter::ImportMapTy> &ImportLists) {
   unsigned TaskCount = 0;
   std::vector<ThinLTOTaskInfo> Tasks;
   Tasks.reserve(Modules.size());