Skip to content

Make it work on aarch64 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/object.rs
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ impl<'a> Iterator for Symbols<'a> {
type Item = Symbol<'a>;
fn next(&mut self) -> Option<Symbol<'a>> {
unsafe {
let name = util::to_str(object::LLVMGetSymbolName(self.iter) as *mut i8);
let name = util::to_str(object::LLVMGetSymbolName(self.iter) as *mut libc::c_char);
let size = object::LLVMGetSymbolSize(self.iter) as usize;
let address = object::LLVMGetSymbolAddress(self.iter) as usize;
Some(Symbol {
4 changes: 2 additions & 2 deletions src/value.rs
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ impl Value {
pub fn get_name(&self) -> Option<&str> {
unsafe {
let c_name = core::LLVMGetValueName(self.into());
util::to_null_str(c_name as *mut i8)
util::to_null_str(c_name as *mut libc::c_char)
}
}
/// Sets the name of this value
@@ -398,4 +398,4 @@ impl GetContext for Value {
fn get_context(&self) -> &Context {
self.get_type().get_context()
}
}
}