rustc: remove some dead functions
This commit is contained in:
parent
69a237ed7b
commit
7434080dd7
@ -788,15 +788,6 @@ pub fn C_estr_slice(cx: &mut CrateContext, s: @str) -> ValueRef {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns a Plain Old LLVM String:
|
|
||||||
pub fn C_postr(s: &str) -> ValueRef {
|
|
||||||
unsafe {
|
|
||||||
do s.as_c_str |buf| {
|
|
||||||
llvm::LLVMConstStringInContext(base::task_llcx(), buf, s.len() as c_uint, False)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn C_zero_byte_arr(size: uint) -> ValueRef {
|
pub fn C_zero_byte_arr(size: uint) -> ValueRef {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut i = 0u;
|
let mut i = 0u;
|
||||||
@ -844,14 +835,6 @@ pub fn C_bytes(bytes: &[u8]) -> ValueRef {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn C_bytes_plus_null(bytes: &[u8]) -> ValueRef {
|
|
||||||
unsafe {
|
|
||||||
return llvm::LLVMConstStringInContext(base::task_llcx(),
|
|
||||||
cast::transmute(vec::raw::to_ptr(bytes)),
|
|
||||||
bytes.len() as c_uint, False);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn get_param(fndecl: ValueRef, param: uint) -> ValueRef {
|
pub fn get_param(fndecl: ValueRef, param: uint) -> ValueRef {
|
||||||
unsafe {
|
unsafe {
|
||||||
llvm::LLVMGetParam(fndecl, param as c_uint)
|
llvm::LLVMGetParam(fndecl, param as c_uint)
|
||||||
|
Loading…
Reference in New Issue
Block a user