about summary refs log tree commit diff
path: root/src/allocator.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-02-23 11:49:34 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-02-23 11:49:34 +0100
commitb5cbb87e628d267ecc5c1353c6abba63db02a2dd (patch)
treeba4c1daa8dfffe7397b312a95f494a52634b0d22 /src/allocator.rs
parenta063e138b6db9cd8dee2b6573d089fd4c843be7f (diff)
downloadrust-b5cbb87e628d267ecc5c1353c6abba63db02a2dd.tar.gz
rust-b5cbb87e628d267ecc5c1353c6abba63db02a2dd.zip
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
Diffstat (limited to 'src/allocator.rs')
-rw-r--r--src/allocator.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/allocator.rs b/src/allocator.rs
index 637d30f9344..82247b47888 100644
--- a/src/allocator.rs
+++ b/src/allocator.rs
@@ -3,7 +3,6 @@
 
 use crate::prelude::*;
 
-use cranelift_codegen::binemit::{NullStackMapSink, NullTrapSink};
 use rustc_ast::expand::allocator::{AllocatorKind, AllocatorTy, ALLOCATOR_METHODS};
 
 /// Returns whether an allocator shim was created
@@ -91,9 +90,7 @@ fn codegen_inner(
             bcx.seal_all_blocks();
             bcx.finalize();
         }
-        module
-            .define_function(func_id, &mut ctx, &mut NullTrapSink {}, &mut NullStackMapSink {})
-            .unwrap();
+        module.define_function(func_id, &mut ctx).unwrap();
         unwind_context.add_function(func_id, &ctx, module.isa());
     }
 
@@ -130,8 +127,6 @@ fn codegen_inner(
         bcx.seal_all_blocks();
         bcx.finalize();
     }
-    module
-        .define_function(func_id, &mut ctx, &mut NullTrapSink {}, &mut NullStackMapSink {})
-        .unwrap();
+    module.define_function(func_id, &mut ctx).unwrap();
     unwind_context.add_function(func_id, &ctx, module.isa());
 }