Jonas Schievink
fd2b65ee70
Register reads on the corrent HIR item
2016-07-11 17:11:51 +02:00
Jonas Schievink
37d5c06a0d
Don't register reads for external items
...
Presumably, this ICEs when translating an inlined item from another
crate. There shouldn't be a need to track dependencies in that case.
2016-07-11 01:49:38 +02:00
Jonas Schievink
f5d29a3b59
Move variant_size_differences out of trans
...
Also enhances the error message a bit, fixes #30505 on the way, and adds
a test (which was missing).
Closes #34018
2016-07-10 22:12:31 +02:00
Michael Woerister
1c03bfe3b4
trans: Adjust linkage assignment so that we don't need weak linkage.
2016-07-08 10:42:48 -04:00
Michael Woerister
b149b9d19b
trans: Set COMDAT section for weak symbols so that Windows can handle them.
2016-07-08 10:42:48 -04:00
Michael Woerister
4c27a3c6d5
trans: Enable falling back to on-demand instantiation for drop-glue and monomorphizations.
...
See issue #34151 for more information.
2016-07-08 10:42:48 -04:00
Michael Woerister
ab80f74670
collector-driven-trans: Take care of nits.
2016-07-08 10:42:47 -04:00
Michael Woerister
b38e0d0d44
Build SymbolMap for symbol name conflict checking and caching.
2016-07-08 10:42:47 -04:00
Michael Woerister
87c1c87dd7
Make drop-glue translation collector-driven.
2016-07-08 10:42:47 -04:00
Michael Woerister
6c8c94b848
Improve linkage assignment in trans::partitioning.
2016-07-08 10:42:47 -04:00
James Miller
6717106947
Drive function item translation from collector
...
Functions and method are declared ahead-of-time, including generic ones.
Closures are not considered trans items anymore, instead they are
translated on demands.
2016-07-08 10:42:38 -04:00
Michael Woerister
891c2a082f
trans: Make translation of statics collector-driven.
2016-07-08 09:37:23 -04:00
Michael Woerister
802bb578e4
trans: Use CrateContext::empty_substs_for_def_id() instead of Substs::empty() where appropriate.
2016-05-11 17:11:20 -04:00
Michael Woerister
e3f19cb0b3
trans: Move TransItem to its own module.
2016-05-11 13:49:44 -04:00