diff options
Diffstat (limited to 'lld/ELF/Driver.cpp')
| -rw-r--r-- | lld/ELF/Driver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index eb3eee522c4..da7ea1c7dfa 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -109,6 +109,8 @@ void LinkerDriver::addFile(StringRef Path) { using namespace llvm::sys::fs; if (Config->Verbose) llvm::outs() << Path << "\n"; + if (!Config->Reproduce.empty()) + copyInputFile(Path); Optional<MemoryBufferRef> Buffer = readFile(Path); if (!Buffer.hasValue()) @@ -252,7 +254,7 @@ void LinkerDriver::main(ArrayRef<const char *> ArgsArr) { initLLVM(Args); if (!Config->Reproduce.empty()) - saveLinkerInputs(Args); + createResponseFile(Args); createFiles(Args); checkOptions(Args); |

