1
Fork 0
rust/compiler/rustc_codegen_llvm/src
bors 47b2eee173 Auto merge of #102424 - sunfishcode:sunfishcode/hidden-main, r=nagisa
Declare `main` as visibility hidden on targets that default to hidden.

On targets with `default_hidden_visibility` set, which is currrently just WebAssembly, declare the generated `main` function with visibility hidden. This makes it consistent with clang's WebAssembly target, where `main` is just a user function that gets the same visibility as any other user function, which is hidden on WebAssembly unless explicitly overridden.

This will help simplify use cases which in the future may want to automatically wasm-export all visibility-"default" symbols. `main` isn't intended to be wasm-exported, and marking it hidden prevents it from being wasm-exported in that scenario.
2022-10-02 04:12:09 +00:00
..
back Rename LLVM optimize functions 2022-09-19 11:10:12 -07:00
coverageinfo Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
debuginfo Change name of "dataful" variant to "untagged" 2022-09-07 20:12:45 +00:00
llvm Use the existing set_visibility function. 2022-09-28 14:43:58 -07:00
abi.rs Rollup merge of #99207 - 5225225:msan-eager-checks, r=jackh726 2022-09-09 07:02:30 +02:00
allocator.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
asm.rs Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
attributes.rs Add inline-llvm option for disabling/enabling LLVM inlining 2022-09-09 08:00:47 -07:00
base.rs Auto merge of #95689 - lqd:self-profiler, r=wesleywiser 2022-04-16 11:43:28 +00:00
builder.rs Change declare_cfn to use the C visibility for all C ABI functions. 2022-09-28 14:50:58 -07:00
callee.rs Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
common.rs Introduce a fallible variant of LLVMConstIntGetZExtValue 2022-09-09 15:54:14 +02:00
consts.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
context.rs Adjust the s390x data layout for LLVM 16 2022-09-29 18:18:26 -07:00
declare.rs Change declare_cfn to use the C visibility for all C ABI functions. 2022-09-28 14:50:58 -07:00
intrinsic.rs Change declare_cfn to use the C visibility for all C ABI functions. 2022-09-28 14:50:58 -07:00
lib.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
llvm_util.rs Remove support for LLVM's legacy pass manager 2022-09-18 13:25:49 -07:00
mono_item.rs Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
type_.rs Add fine-grained LLVM CFI support to the Rust compiler 2022-07-23 10:51:34 -07:00
type_of.rs Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
va_arg.rs Introduce Bx::switch_to_block 2022-02-24 12:18:21 +01:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00