Add input_file method on LlvmFileCheck

This commit is contained in:
Guillaume Gomez 2024-06-25 12:39:04 +02:00
parent 7b21c18fe4
commit fc8b6c6657

View File

@ -180,6 +180,13 @@ pub fn patterns<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
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 {