about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/debuginfo
diff options
context:
space:
mode:
authorErin Power <erin.power@embark-studios.com>2021-04-30 18:46:59 +0200
committerErin Power <erin.power@embark-studios.com>2021-04-30 18:46:59 +0200
commitef53ebc5da969ae92ce47eebbdc3697803965ad3 (patch)
treedc7ffd56a8927a8b270b6e67374db014e698bb37 /compiler/rustc_codegen_cranelift/src/debuginfo
parent9d07b92990401da49e99aebd815ccd0bd343a0da (diff)
parent15c8d31392b9fbab3b3368b67acc4bbe5983115a (diff)
downloadrust-ef53ebc5da969ae92ce47eebbdc3697803965ad3.tar.gz
rust-ef53ebc5da969ae92ce47eebbdc3697803965ad3.zip
Merge commit '15c8d31392b9fbab3b3368b67acc4bbe5983115a' into cranelift-rebase
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs b/compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs
index ca7083cccb8..d1251e749f3 100644
--- a/compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs
+++ b/compiler/rustc_codegen_cranelift/src/debuginfo/unwind.rs
@@ -71,7 +71,10 @@ impl UnwindContext {
         }
     }
 
-    #[cfg(feature = "jit")]
+    #[cfg(all(feature = "jit", windows))]
+    pub(crate) unsafe fn register_jit(self, _jit_module: &cranelift_jit::JITModule) {}
+
+    #[cfg(all(feature = "jit", not(windows)))]
     pub(crate) unsafe fn register_jit(self, jit_module: &cranelift_jit::JITModule) {
         let mut eh_frame = EhFrame::from(super::emit::WriterRelocate::new(self.endian));
         self.frame_table.write_eh_frame(&mut eh_frame).unwrap();