Add support for LTO plugin option obj-path
Details
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
lld/ELF/LTO.cpp | ||
---|---|---|
283 ↗ | (On Diff #145777) | I wouldn't save the buffer at all if obj-path is not passed. |
lld/ELF/LTO.cpp | ||
---|---|---|
283 ↗ | (On Diff #145777) | Wouldn't we want to store the generated file, if obj-path is not passed? Since we know that Buff[0] is not empty, aren't we supposed to store the content? In that case, is obj-path a requirement for thinlto-index-only? |
lld/ELF/LTO.cpp | ||
---|---|---|
283 ↗ | (On Diff #145777) | If you happen to know that all input files do not use full LTO then there is no need to pass obj-path. The linker shouldn't write a file to an arbitrary location in that case. |
Removed the test which ensured that regular LTO file was written with index only option. It needs to have obj-path option to write that file.
Please consider splitting "thinlto.ll" test file as it contains all tests for thinlto, and that's not desirabl, as small test files are more manageable than one large test file.