ltvm: expect message for entry symbol
This commit is contained in:
parent
cf2ea4df78
commit
f5984e0b08
1 changed files with 2 additions and 4 deletions
|
@ -34,11 +34,9 @@ fn main() {
|
||||||
|
|
||||||
linker.import( source_path, bincode::deserialize_from( input ).expect("") );
|
linker.import( source_path, bincode::deserialize_from( input ).expect("") );
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
let entry_addr = symbols.get(&args.entry)
|
let entry_addr = linker.get_link_addr(&args.entry)
|
||||||
.expect(&format!("cant find entry symbol '{}'", args.entry));
|
.expect(&format!("cant find entry symbol '{}'", args.entry));
|
||||||
*/
|
|
||||||
let entry_addr = linker.get_link_addr(&args.entry).unwrap();
|
|
||||||
let bytecode = linker.link_total().expect("Link error:");
|
let bytecode = linker.link_total().expect("Link error:");
|
||||||
|
|
||||||
eprintln!("{} ({} bytes)", "Loaded bytecode.".green(), bytecode.len());
|
eprintln!("{} ({} bytes)", "Loaded bytecode.".green(), bytecode.len());
|
||||||
|
|
Loading…
Reference in a new issue