Skip to content
Open
Show file tree
Hide file tree
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
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -398,4 +398,4 @@ impl GetContext for Value {
fn get_context(&self) -> &Context {
self.get_type().get_context()
}
}
}