about summary refs log tree commit diff
path: root/src/comp/lib
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-07-06 16:46:17 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-07-06 16:46:17 +0200
commit7661c08496b0dc9ce55657246f8e5e42051c812e (patch)
tree125d9f3fe0dbd0eb90d93a6de31e08452cb13ae8 /src/comp/lib
parent4c315666dd7c2ac2d207b00ad2b5b5ca309a627f (diff)
downloadrust-7661c08496b0dc9ce55657246f8e5e42051c812e.tar.gz
rust-7661c08496b0dc9ce55657246f8e5e42051c812e.zip
Remove temporary stdlib placeholders, use actual stdlib functions
(Possible now that a snapshot took place.)
Diffstat (limited to 'src/comp/lib')
-rw-r--r--src/comp/lib/llvm.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs
index 8a9c5aa5857..0674d3a2463 100644
--- a/src/comp/lib/llvm.rs
+++ b/src/comp/lib/llvm.rs
@@ -1457,7 +1457,7 @@ state obj type_names(std::map::hashmap[TypeRef, str] type_names,
 }
 
 fn mk_type_names() -> type_names {
-    auto nt = syntax::_std::new_str_hash[TypeRef]();
+    auto nt = std::map::new_str_hash[TypeRef]();
 
     fn hash(&TypeRef t) -> uint {
         ret t as uint;
@@ -1519,8 +1519,7 @@ fn type_to_str_inner(type_names names,
         case (6) { ret "Label"; }
 
         case (7) {
-            ret "i" + syntax::_std::istr(llvm::LLVMGetIntTypeWidth(ty)
-                                         as int);
+            ret "i" + std::int::str(llvm::LLVMGetIntTypeWidth(ty) as int);
         }
 
         case (8) {
@@ -1558,7 +1557,7 @@ fn type_to_str_inner(type_names names,
                 i += 1u;
                 if (tout as int == ty as int) {
                     let uint n = vec::len[TypeRef](outer0) - i;
-                    ret "*\\" + syntax::_std::istr(n as int);
+                    ret "*\\" + std::int::str(n as int);
                 }
             }
             ret "*" + type_to_str_inner(names, outer,