This adds support to option -plugin-opt=dwo_dir=${DIR}. This option is used to specify the directory to store the .dwo files when LTO and debug fission is used
at the same time.
Details
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
ELF/Options.td | ||
---|---|---|
451 | sort |
test/ELF/lto/thinlto-debug-fission.ll | ||
---|---|---|
8 | Yes, it will create a new directory if the specified directory does not exist. |
LGTM
test/ELF/lto/thinlto-debug-fission.ll | ||
---|---|---|
8 | I'd add an rm -rf %T/dwo to test that and make sure that files aren't left over from previous runs. |
test/ELF/lto/thinlto-debug-fission.ll | ||
---|---|---|
8 | Move the rm -rf before the call to ld.lld. |
test/ELF/lto/thinlto-debug-fission.ll | ||
---|---|---|
8 |
Looks like this wasn't resolved before committing. |
The new option should appear before this line I think.