Copy first batch of material from libstd to libcore.
This commit is contained in:
parent
32087f5c2a
commit
fa9ad984fb
325 changed files with 5579 additions and 720 deletions
|
|
@ -7,8 +7,9 @@ import front::attr;
|
|||
import syntax::visit;
|
||||
import syntax::codemap::span;
|
||||
import util::{filesearch};
|
||||
import std::{either, vec, str, fs, io, option};
|
||||
import std::option::{none, some};
|
||||
import core::{either, vec, str, option};
|
||||
import std::{io, fs};
|
||||
import option::{none, some};
|
||||
import std::map::{hashmap, new_int_hash};
|
||||
import syntax::print::pprust;
|
||||
import common::*;
|
||||
|
|
@ -206,7 +207,7 @@ fn get_metadata_section(sess: session::session,
|
|||
let cbuf = llvm::LLVMGetSectionContents(si.llsi);
|
||||
let csz = llvm::LLVMGetSectionSize(si.llsi);
|
||||
unsafe {
|
||||
let cvbuf: *u8 = std::unsafe::reinterpret_cast(cbuf);
|
||||
let cvbuf: *u8 = unsafe::reinterpret_cast(cbuf);
|
||||
ret option::some::<@[u8]>(@vec::unsafe::from_buf(cvbuf, csz));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue