Add an enable_verifier setting.

This is off by default, but enabled by the parser when reading a textual
IL file. Test files can still override the default to turn off
verification.

The setting enables IL verifier passes at critical points of the
compilation pipeline.
This commit is contained in:
Jakob Stoklund Olesen
2017-04-21 09:49:03 -07:00
parent 3005f903f7
commit 866efd91b7
3 changed files with 21 additions and 2 deletions

View File

@@ -271,6 +271,7 @@ mod tests {
assert_eq!(f.to_string(),
"[shared]\n\
opt_level = \"default\"\n\
enable_verifier = false\n\
is_64bit = false\n\
is_compressed = false\n\
enable_float = true\n\