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

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 15 06:26:53 PDT 2016


> 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.

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