diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-12-13 16:25:51 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-12-13 16:34:50 -0800 |
| commit | fa9ad984fb2f013baebdbe01a42baa3b9101dd84 (patch) | |
| tree | 49115690e45ca322337b93f25308cd618f85b013 /src/comp/lib | |
| parent | 32087f5c2a35bf8050067c22a57fd60269633a60 (diff) | |
| download | rust-fa9ad984fb2f013baebdbe01a42baa3b9101dd84.tar.gz rust-fa9ad984fb2f013baebdbe01a42baa3b9101dd84.zip | |
Copy first batch of material from libstd to libcore.
Diffstat (limited to 'src/comp/lib')
| -rw-r--r-- | src/comp/lib/llvm.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 21c09d8ef42..9ff014699ab 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -1,5 +1,5 @@ -import std::{vec, str, option}; -import std::str::sbuf; +import core::{vec, str, option}; +import str::sbuf; import llvm::{TypeRef, MemoryBufferRef, PassManagerRef, TargetDataRef, @@ -960,7 +960,7 @@ fn type_to_str_inner(names: type_names, outer0: [TypeRef], ty: TypeRef) -> 5 { ret "PPC_FP128"; } 6 { ret "Label"; } 7 { - ret "i" + std::int::str(llvm::LLVMGetIntTypeWidth(ty) as int); + ret "i" + int::str(llvm::LLVMGetIntTypeWidth(ty) as int); } 8 { let s = "fn("; @@ -996,7 +996,7 @@ fn type_to_str_inner(names: type_names, outer0: [TypeRef], ty: TypeRef) -> i += 1u; if tout as int == ty as int { let n: uint = vec::len::<TypeRef>(outer0) - i; - ret "*\\" + std::int::str(n as int); + ret "*\\" + int::str(n as int); } } ret "*" + |
