about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-04-07 12:16:43 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-04-08 00:03:11 -0700
commit5367c32c7ddb873babec89f739a936409d45476a (patch)
tree4982c94e31e8a77123c9f9de26aefb86c372ef3a /src/rustllvm/RustWrapper.cpp
parent31755e2452b280fe4038140012dcd19560b6f03d (diff)
downloadrust-5367c32c7ddb873babec89f739a936409d45476a.tar.gz
rust-5367c32c7ddb873babec89f739a936409d45476a.zip
rustc: Never register syntax crates in CStore
When linking, all crates in the local CStore are used to link the final product.
With #[phase(syntax)], crates want to be omitted from this linkage phase, and
this was achieved by dumping the entire CStore after loading crates. This causes
crates like the standard library to get loaded twice. This loading process is a
fairly expensive operation when dealing with decompressing metadata.

This commit alters the loading process to never register syntax crates in
CStore. Instead, only phase(link) crates ever make their way into the map of
crates. The CrateLoader trait was altered to return everything in one method
instead of having separate methods for finding information.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions