From fa9ad984fb2f013baebdbe01a42baa3b9101dd84 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Tue, 13 Dec 2011 16:25:51 -0800 Subject: Copy first batch of material from libstd to libcore. --- src/comp/lib/llvm.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/comp/lib') 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::(outer0) - i; - ret "*\\" + std::int::str(n as int); + ret "*\\" + int::str(n as int); } } ret "*" + -- cgit 1.4.1-3-g733a5