File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
src/librustc/middle/trans Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -788,15 +788,6 @@ pub fn C_estr_slice(cx: &mut CrateContext, s: @str) -> ValueRef {
788
788
}
789
789
}
790
790
791
- // Returns a Plain Old LLVM String:
792
- pub fn C_postr ( s : & str ) -> ValueRef {
793
- unsafe {
794
- do s. as_c_str |buf| {
795
- llvm:: LLVMConstStringInContext ( base:: task_llcx ( ) , buf, s. len ( ) as c_uint , False )
796
- }
797
- }
798
- }
799
-
800
791
pub fn C_zero_byte_arr ( size : uint ) -> ValueRef {
801
792
unsafe {
802
793
let mut i = 0 u;
@@ -844,14 +835,6 @@ pub fn C_bytes(bytes: &[u8]) -> ValueRef {
844
835
}
845
836
}
846
837
847
- pub fn C_bytes_plus_null ( bytes : & [ u8 ] ) -> ValueRef {
848
- unsafe {
849
- return llvm:: LLVMConstStringInContext ( base:: task_llcx ( ) ,
850
- cast:: transmute ( vec:: raw:: to_ptr ( bytes) ) ,
851
- bytes. len ( ) as c_uint , False ) ;
852
- }
853
- }
854
-
855
838
pub fn get_param ( fndecl : ValueRef , param : uint ) -> ValueRef {
856
839
unsafe {
857
840
llvm:: LLVMGetParam ( fndecl, param as c_uint )
You can’t perform that action at this time.
0 commit comments