diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-25 12:39:04 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-07-01 15:10:13 +0200 |
| commit | fc8b6c6657962002af58f9a4cf5796031ebbf665 (patch) | |
| tree | 25bf3fca672ae6b07fa9c4db89c2232cfc014ac1 | |
| parent | 7b21c18fe4de32a7d2faa468e6ef69abff013f85 (diff) | |
| download | rust-fc8b6c6657962002af58f9a4cf5796031ebbf665.tar.gz rust-fc8b6c6657962002af58f9a4cf5796031ebbf665.zip | |
Add `input_file` method on `LlvmFileCheck`
| -rw-r--r-- | src/tools/run-make-support/src/llvm.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/run-make-support/src/llvm.rs b/src/tools/run-make-support/src/llvm.rs index 7f42223bf7f..4c9e9a53230 100644 --- a/src/tools/run-make-support/src/llvm.rs +++ b/src/tools/run-make-support/src/llvm.rs @@ -180,6 +180,13 @@ impl LlvmFilecheck { self.cmd.arg(path.as_ref()); self } + + /// `--input-file` option. + pub fn input_file<P: AsRef<Path>>(&mut self, input_file: P) -> &mut Self { + self.cmd.arg("--input-file"); + self.cmd.arg(input_file.as_ref()); + self + } } impl LlvmObjdump { |
