Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--reproduce is a convenient option for debugging. If you invoke lld with `--reproduce=repro.tar`, it creates `repro.tar` with all input files and the command line options given to the linker, so that it is very easy to run lld with the exact same inputs. ELF and Windows lld have this option. This patch add that option to lld/wasm. Differential Revision: https://reviews.llvm.org/D62170 llvm-svn: 361244
- Loading branch information
Showing
5 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
; REQUIRES: shell | ||
; RUN: rm -rf %t.dir | ||
; RUN: mkdir -p %t.dir | ||
; RUN: llc -filetype=obj %s -o %t.dir/foo.o | ||
; RUN: wasm-ld --reproduce=%t.dir/repro.tar -o out.wasm %t.dir/foo.o | ||
|
||
; RUN: cd %t.dir | ||
; RUN: tar tf repro.tar | FileCheck --check-prefix=TAR | ||
|
||
; TAR: repro/response.txt | ||
; TAR: repro/version.txt | ||
; TAR: repro/{{.*}}/foo.o | ||
|
||
; RUN: tar xf repro.tar | ||
; RUN: FileCheck --check-prefix=RSP %s < repro/response.txt | ||
|
||
; RSP: -o out.wasm | ||
; RSP: {{.*}}/foo.o | ||
|
||
; RUN: FileCheck %s --check-prefix=VERSION < repro/version.txt | ||
; VERSION: LLD | ||
|
||
target triple = "wasm32-unknown-unknown" | ||
|
||
define void @_start() { | ||
ret void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters