Add serde functionality into lib. (#422)
* Adds decoration to the verifier errors.
example:
function %bad(i32) fast {
ebb0(v0: i32):
brnz.i32 v0, ebb1
return
^~~~~~
verifier inst1: Internal return not allowed with return_at_end=1
ebb1:
trapz.i32 v0, user6
return
}
Fixes #68
* Making it so that pretty_function_error and write_function_plain are both private.
* Changes write_ebb to decorate_ebb.
Adds documentation line to decorate_function.
* Removing Cargo.toml lib/serde addition
* Add serde functionality into lib.
* Fix so code is compatible with Rust version 1.25.0.
* Move ser/de functions to utility file, update description, remove borrow from arms.
* Remove commented out code.
This commit is contained in:
committed by
Dan Gohman
parent
13fea26c95
commit
65a1a6bb28
@@ -17,6 +17,7 @@ cfg-if = "0.1"
|
||||
cranelift-codegen = { path = "lib/codegen", version = "0.17.0" }
|
||||
cranelift-reader = { path = "lib/reader", version = "0.17.0" }
|
||||
cranelift-frontend = { path = "lib/frontend", version = "0.17.0" }
|
||||
cranelift-serde = { path = "lib/serde", version = "0.17.0", optional = true }
|
||||
cranelift-wasm = { path = "lib/wasm", version = "0.17.0", optional = true }
|
||||
cranelift-native = { path = "lib/native", version = "0.17.0" }
|
||||
cranelift-filetests = { path = "lib/filetests", version = "0.17.0" }
|
||||
|
||||
Reference in New Issue
Block a user