[PATCH] D12309: [lld] COFF: Implement parallel LTO code generation.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 00:03:12 PDT 2015


ruiu accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: COFF/SymbolTable.cpp:418
@@ +417,3 @@
+  Objs.resize(Config->LTOJobs);
+  // Use std::list to avoid invalidation of pointers in OSPtrs.
+  std::list<raw_svector_ostream> OSs;
----------------
Aha, understood. Maybe I would give an initial capacity to avoid std::vector's resizing instead of std::list, but this code is okay.


http://reviews.llvm.org/D12309





More information about the llvm-commits mailing list