Fix unused imports on Windows.

This commit is contained in:
losfair
2019-08-22 13:14:05 -07:00
parent 115da5f130
commit eef38429fc
2 changed files with 4 additions and 29 deletions

View File

@ -10,7 +10,6 @@ use inkwell::{
use libc::c_char;
use std::{
any::Any,
collections::BTreeMap,
ffi::{c_void, CString},
fs::File,
io::Write,
@ -229,6 +228,8 @@ impl LLVMBackend {
#[cfg(all(any(target_os = "linux", target_os = "macos"), target_arch = "x86_64"))]
{
use super::stackmap::{self, StkMapRecord, StkSizeRecord};
use std::collections::BTreeMap;
let raw_stackmap = unsafe {
std::slice::from_raw_parts(
llvm_backend_get_stack_map_ptr(module),