Add comment support (#379)

* Add comment support

* Don't print empty comments

* Add nop instruction

* Add test and note

* Add FuncWriter trait

* Remove comment support

* Add write_preamble to FuncWriter

* Fix test

* Some changes
This commit is contained in:
bjorn3
2018-08-01 20:21:05 +02:00
committed by Dan Gohman
parent c42bed7452
commit 01729be8d7
8 changed files with 124 additions and 51 deletions

View File

@@ -77,7 +77,7 @@ fn handle_module(path: &Path, flags: &Flags) {
translate_module(&data, &mut dummy_environ).unwrap();
for func in &dummy_environ.info.function_bodies {
verifier::verify_function(func, flags)
.map_err(|err| panic!(pretty_verifier_error(func, None, &err)))
.map_err(|err| panic!(pretty_verifier_error(func, None, None, &err)))
.unwrap();
}
}