[llvm-objdump] Implement --prefix option
The prefix given to --prefix will be added to GNU absolute paths when
used with --source option (source interleaved with the disassembly).
This matches GNU's objdump behavior.
GNU and C++17 rules for absolute paths are different.
Depends on D87667.
Fixes PR46368.
Please don't just copy disassemble-archive-with-source.ll
The test is named disassemble-archive-with-modified-source-path.ll
I wonder whether using an archive is significant to the test. If not, just use a plain .o
If an archive can trigger a slightly different code path you also want to test, you can add a second llvm-objdump RUN line for an archive.
Consider reusing an existing .ll file and not duplicating LLVM IR, e.g. source-interleave-x86_64.test