Skip to content

Commit

Permalink
Bump internals version
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDan64 committed Jan 22, 2023
1 parent bdd015f commit 4683209
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion internal_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 2 additions & 4 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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;

Expand Down
5 changes: 0 additions & 5 deletions src/support/error_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
Expand Down

0 comments on commit 4683209

Please sign in to comment.