rust/src/librustc_mir
kennytm fde67b6ae3 Rollup merge of #47889 - alexcrichton:wasm-hidden-by-default, r=cramertj
rustc: Add an option to default hidden visibility

This commit adds a new option to target specifictions to specify that symbols
should be "hidden" visibility by default in LLVM. While there are no existing
targets that take advantage of this the `wasm32-unknown-unknown` target will
soon start to use this visibility. The LLD linker currently interprets `hidden`
as "don't export this from the wasm module" which is what we want for 90% of our
functions. While the LLD linker does have a "export this symbol" argument which
is what we use for other linkers, it was also somewhat easier to do this change
instead which'll involve less arguments flying around. Additionally there's no
need for non-`hidden` visibility for most of our symbols!

This change should not immediately impact the wasm targets as-is, but rather
this is laying the foundations for soon integrating LLD as a linker for wasm
code.
2018-01-31 16:36:15 +08:00
..
borrow_check Auto merge of #47837 - eddyb:going-places, r=nikomatsakis 2018-01-29 19:47:48 +00:00
build Auto merge of #47746 - varkor:never-type-ice, r=nikomatsakis 2018-01-28 00:40:10 +00:00
dataflow rustc: replace "lvalue" terminology with "place" in the code. 2018-01-29 01:49:29 +02:00
hair Prefer to use attr::contains_name() and attr::find_by_name() 2017-12-28 12:32:24 +09:00
interpret rustc: replace "lvalue" terminology with "place" in the code. 2018-01-29 01:49:29 +02:00
monomorphize rustc: Add an option to default hidden visibility 2018-01-30 13:41:20 -08:00
transform rustc: replace "lvalue" terminology with "place" in the code. 2018-01-29 01:49:29 +02:00
util rustc: replace "lvalue" terminology with "place" in the code. 2018-01-29 01:49:29 +02:00
Cargo.toml Allow runtime switching between trans backends 2018-01-19 20:27:10 +01:00
diagnostics.rs Stabilize const-calling existing const-fns in std 2017-11-26 23:43:44 +01:00
lib.rs Allow runtime switching between trans backends 2018-01-19 20:27:10 +01:00
shim.rs remove noop landing pads in cleanup shims 2018-01-16 00:07:06 +02:00