diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-07 12:16:43 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-08 00:03:11 -0700 |
| commit | 5367c32c7ddb873babec89f739a936409d45476a (patch) | |
| tree | 4982c94e31e8a77123c9f9de26aefb86c372ef3a /src/rustllvm/RustWrapper.cpp | |
| parent | 31755e2452b280fe4038140012dcd19560b6f03d (diff) | |
| download | rust-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
