@@ -4,7 +4,6 @@ use crate::func_environ::FuncEnvironment;
44use crate :: translate:: FuncTranslator ;
55use crate :: { BuiltinFunctionSignatures , builder:: LinkOptions , wasm_call_signature} ;
66use crate :: { CompiledFunction , ModuleTextBuilder , array_call_signature} ;
7- use anyhow:: { Context as _, Result } ;
87use cranelift_codegen:: binemit:: CodeOffset ;
98use cranelift_codegen:: inline:: InlineCommand ;
109use cranelift_codegen:: ir:: condcodes:: IntCC ;
@@ -32,6 +31,7 @@ use std::ops::Range;
3231use std:: path;
3332use std:: sync:: { Arc , Mutex } ;
3433use wasmparser:: { FuncValidatorAllocations , FunctionBody } ;
34+ use wasmtime_environ:: error:: { Context as _, Result } ;
3535use wasmtime_environ:: obj:: { ELF_WASMTIME_EXCEPTIONS , ELF_WASMTIME_FRAMES } ;
3636use wasmtime_environ:: {
3737 Abi , AddressMapSection , BuiltinFunctionIndex , CacheStore , CompileError , CompiledFunctionBody ,
@@ -1579,7 +1579,7 @@ fn clif_to_env_exception_tables<'a>(
15791579 builder : & mut ExceptionTableBuilder ,
15801580 range : Range < u64 > ,
15811581 call_sites : impl Iterator < Item = FinalizedMachCallSite < ' a > > ,
1582- ) -> anyhow :: Result < ( ) > {
1582+ ) -> wasmtime_environ :: error :: Result < ( ) > {
15831583 builder. add_func ( CodeOffset :: try_from ( range. start ) . unwrap ( ) , call_sites)
15841584}
15851585
@@ -1591,7 +1591,7 @@ fn clif_to_env_frame_tables<'a>(
15911591 tag_sites : impl Iterator < Item = MachBufferDebugTagList < ' a > > ,
15921592 frame_layout : & MachBufferFrameLayout ,
15931593 frame_descriptors : & HashMap < FuncKey , Vec < u8 > > ,
1594- ) -> anyhow :: Result < ( ) > {
1594+ ) -> wasmtime_environ :: error :: Result < ( ) > {
15951595 let mut frame_descriptor_indices = HashMap :: new ( ) ;
15961596 for tag_site in tag_sites {
15971597 // Split into frames; each has three debug tags.
@@ -1647,7 +1647,7 @@ fn clif_to_env_breakpoints(
16471647 range : Range < u64 > ,
16481648 breakpoint_patches : impl Iterator < Item = ( u32 , Range < u32 > ) > ,
16491649 patch_table : & mut Vec < ( u32 , Range < u32 > ) > ,
1650- ) -> anyhow :: Result < ( ) > {
1650+ ) -> wasmtime_environ :: error :: Result < ( ) > {
16511651 patch_table. extend ( breakpoint_patches. map ( |( wasm_pc, offset_range) | {
16521652 let start = offset_range. start + u32:: try_from ( range. start ) . unwrap ( ) ;
16531653 let end = offset_range. end + u32:: try_from ( range. start ) . unwrap ( ) ;
0 commit comments