Move used_libraries from session to cstore

This commit is contained in:
Brian Anderson 2011-07-07 18:33:59 -07:00
parent 1386420cad
commit 4bfa269fe7
4 changed files with 21 additions and 22 deletions

View file

@ -180,7 +180,8 @@ fn visit_item(env e, &@ast::item i) {
m.abi != ast::native_abi_cdecl) {
ret;
}
if (!e.sess.add_used_library(m.native_name)) {
auto cstore = e.sess.get_cstore();
if (!cstore::add_used_library(cstore, m.native_name)) {
ret;
}
for (ast::attribute a in