.. so that we don't have to create TM in two places in lld. See http://reviews.llvm.org/D18999 for reference.
Hopefully should work, assuming TheTarget is thread-safe. Thanks to Michael Spencer for help with this patch.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Looks OK, see some inline comments.
include/llvm/CodeGen/ParallelCG.h | ||
---|---|---|
49 | Is there a better name for F? | |
49 | Also: const & | |
lib/CodeGen/ParallelCG.cpp | ||
27–28 | Use another name than F, and take a const &. | |
53 | Do you really mean = here? I'd use &. |
lib/CodeGen/ParallelCG.cpp | ||
---|---|---|
52–56 | clang-format. |
Is there a better name for F?
Also can you add a doxygen for this API (you can refer to the other saying this is a variant that takes a factory function for the TargetMachine)