This involved refactoring out pieces of
EmitAssemblyHelper::CreateTargetMachine for use in runThinLTOBackend.
Subsumes D31114.
Paths
| Differential D31508
[ThinLTO] Set up lto::Config properly for codegen in ThinLTO backends ClosedPublic Authored by tejohnson on Mar 30 2017, 1:43 PM.
Details Summary This involved refactoring out pieces of Subsumes D31114.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 30 2017, 4:47 PM Closed by commit rL299152: [ThinLTO] Set up lto::Config properly for codegen in ThinLTO backends (authored by tejohnson). · Explain WhyMar 30 2017, 7:17 PM This revision was automatically updated to reflect the committed changes. Comment Actions clang -cc1 crashes if an invalid reloc model is passed (via -mreloc-model=), see https://bugs.llvm.org/show_bug.cgi?id=32490 Comment Actions
Thanks for fixing. I don't think this refactoring would have affected this though, the non-ThinLTO backend changes were NFC, it is the same switch statement that was there before.
Revision Contents
Diff 93536 lib/CodeGen/BackendUtil.cpp
test/CodeGen/function-sections.c
|