[llvm] r266568 - [ParallelCG] SmallVector<char> -> SmallString.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 17 12:38:58 PDT 2016
Author: davide
Date: Sun Apr 17 14:38:57 2016
New Revision: 266568
URL: http://llvm.org/viewvc/llvm-project?rev=266568&view=rev
Log:
[ParallelCG] SmallVector<char> -> SmallString.
Modified:
llvm/trunk/lib/CodeGen/ParallelCG.cpp
Modified: llvm/trunk/lib/CodeGen/ParallelCG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ParallelCG.cpp?rev=266568&r1=266567&r2=266568&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ParallelCG.cpp (original)
+++ llvm/trunk/lib/CodeGen/ParallelCG.cpp Sun Apr 17 14:38:57 2016
@@ -65,7 +65,7 @@ std::unique_ptr<Module> llvm::splitCodeG
// spinning up new threads which deserialize the partitions into
// separate contexts.
// FIXME: Provide a more direct way to do this in LLVM.
- SmallVector<char, 0> BC;
+ SmallString<0> BC;
raw_svector_ostream BCOS(BC);
WriteBitcodeToFile(MPart.get(), BCOS);
@@ -77,7 +77,7 @@ std::unique_ptr<Module> llvm::splitCodeG
llvm::raw_pwrite_stream *ThreadOS = OSs[ThreadCount++];
// Enqueue the task
CodegenThreadPool.async(
- [TMFactory, FileType, ThreadOS](const SmallVector<char, 0> &BC) {
+ [TMFactory, FileType, ThreadOS](const SmallString<0> &BC) {
LLVMContext Ctx;
ErrorOr<std::unique_ptr<Module>> MOrErr = parseBitcodeFile(
MemoryBufferRef(StringRef(BC.data(), BC.size()),
More information about the llvm-commits
mailing list