diff --git a/Cargo.toml b/Cargo.toml index f6a343e2208..85289dc6b3b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -86,7 +86,7 @@ nightly = ["inkwell_internals/nightly"] [dependencies] either = "1.5" -inkwell_internals = { path = "./internal_macros", version = "0.6.0" } +inkwell_internals = { path = "./internal_macros", version = "0.7.0" } libc = "0.2" llvm-sys-40 = { package = "llvm-sys", version = "40.4", optional = true } llvm-sys-50 = { package = "llvm-sys", version = "50.4", optional = true } diff --git a/internal_macros/Cargo.toml b/internal_macros/Cargo.toml index 680ec17c39e..ca7fd47ea05 100644 --- a/internal_macros/Cargo.toml +++ b/internal_macros/Cargo.toml @@ -6,7 +6,7 @@ license = "Apache-2.0" name = "inkwell_internals" readme = "README.md" repository = "https://github.com/TheDan64/inkwell" -version = "0.6.0" +version = "0.7.0" [dependencies] proc-macro2 = "1.0" diff --git a/src/context.rs b/src/context.rs index d9bf5688fdc..9c362a3b7b5 100644 --- a/src/context.rs +++ b/src/context.rs @@ -9,8 +9,6 @@ use llvm_sys::core::LLVMConstInlineAsm; use llvm_sys::core::LLVMCreateTypeAttribute; #[llvm_versions(7.0..=latest)] use llvm_sys::core::LLVMGetInlineAsm; -#[llvm_versions(4.0..=11.0)] -use llvm_sys::core::LLVMGetTypeByName; #[llvm_versions(12.0..=latest)] use llvm_sys::core::LLVMGetTypeByName2; #[llvm_versions(6.0..=latest)] @@ -44,8 +42,8 @@ use crate::types::AnyTypeEnum; use crate::types::MetadataType; use crate::types::{AsTypeRef, BasicTypeEnum, FloatType, FunctionType, IntType, StructType, VoidType}; use crate::values::{ - AsValueRef, BasicMetadataValueEnum, BasicValueEnum, FunctionValue, MetadataValue, PointerValue, StructValue, - ArrayValue, + ArrayValue, AsValueRef, BasicMetadataValueEnum, BasicValueEnum, FunctionValue, MetadataValue, PointerValue, + StructValue, }; use crate::AddressSpace; diff --git a/src/support/error_handling.rs b/src/support/error_handling.rs index a6a6a66830b..84d6cf22ce6 100644 --- a/src/support/error_handling.rs +++ b/src/support/error_handling.rs @@ -37,11 +37,6 @@ impl DiagnosticInfo { DiagnosticInfo { diagnostic_info } } - /// Acquires the underlying raw pointer belonging to this `DiagnosticInfo` type. - pub fn as_mut_ptr(&self) -> LLVMDiagnosticInfoRef { - self.diagnostic_info - } - pub(crate) fn get_description(&self) -> *mut ::libc::c_char { unsafe { LLVMGetDiagInfoDescription(self.diagnostic_info) } }