mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-01 07:09:02 +00:00
[ParallelCG] SmallVector<char> -> SmallString.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266568 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
60d75fe84d
commit
8bef6e290e
@ -65,7 +65,7 @@ std::unique_ptr<Module> llvm::splitCodeGen(
|
||||
// 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::splitCodeGen(
|
||||
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()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user