[PATCH] D18999: [ELF/LTO] Parallel Codegen for LLD

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 15 09:31:45 PDT 2016


On Fri, Apr 15, 2016 at 6:26 AM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
>> So, we currently work around the problem with a Factory.
>
> You mean we *can* work around it, right? In this change we still have
> two code paths that create a TargetMachine.
>
> What we can do to work around the problem if fixing pr27361 is too
> much work for now is passing a std::function() with no arguments that
> returns a std::unique_ptr<TargetMachine> to splitCodeGen.
>

This is what http://reviews.llvm.org/D19139 is for, no? Or you had in
mind something different?
I'll update the LLD bits today (after I land D19139).

> That way we can use the same code to create a TargetMachine is both places.
>
> Cheers,
> Rafael


More information about the llvm-commits mailing list