about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2012-03-16 20:19:32 -0400
committerJosh Matthews <josh@joshmatthews.net>2012-03-16 20:19:52 -0400
commitd958123d8a8f348e022e0647545b9ec920afd9ee (patch)
treeae34145aed58eb2be0c4833da991856054f00f6b /src
parent154a3fdf4427ad3de7dc7a5a1a1fe7ee737dc99c (diff)
downloadrust-d958123d8a8f348e022e0647545b9ec920afd9ee.tar.gz
rust-d958123d8a8f348e022e0647545b9ec920afd9ee.zip
Don't break -g in the presence of monomorphization.
Diffstat (limited to 'src')
-rw-r--r--src/rustc/middle/trans/base.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rustc/middle/trans/base.rs b/src/rustc/middle/trans/base.rs
index bcae9a03b29..5497bf0db17 100644
--- a/src/rustc/middle/trans/base.rs
+++ b/src/rustc/middle/trans/base.rs
@@ -1900,6 +1900,7 @@ fn monomorphic_fn(ccx: @crate_ctxt, fn_id: ast::def_id, real_substs: [ty::t],
     let s = mangle_exported_name(ccx, pt, mono_ty);
     let lldecl = decl_cdecl_fn(ccx.llmod, s, llfty);
     ccx.monomorphized.insert(hash_id, lldecl);
+    ccx.item_symbols.insert(fn_id.node, s);
 
     let psubsts = some({tys: substs, vtables: vtables, bounds: tpt.bounds});
     alt check map_node {