"str": rename "str_from_cstr" to "from_cstr" (analogous to the other "from_*")
This commit is contained in:
parent
dd284eb396
commit
d1ffe5034b
5 changed files with 9 additions and 9 deletions
|
|
@ -216,7 +216,7 @@ fn get_metadata_section(sess: session::session,
|
|||
let si = mk_section_iter(of.llof);
|
||||
while llvm::LLVMIsSectionIteratorAtEnd(of.llof, si.llsi) == False {
|
||||
let name_buf = llvm::LLVMGetSectionName(si.llsi);
|
||||
let name = unsafe { str::str_from_cstr(name_buf) };
|
||||
let name = unsafe { str::from_cstr(name_buf) };
|
||||
if str::eq(name, sess.get_targ_cfg().target_strs.meta_sect_name) {
|
||||
let cbuf = llvm::LLVMGetSectionContents(si.llsi);
|
||||
let csz = llvm::LLVMGetSectionSize(si.llsi);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue