rust/compiler/rustc_codegen_llvm/src/llvm
Erik Desjardins dce14cfacc Remove LLVM attribute removal
This was necessary before, because `declare_raw_fn` would always apply
the default optimization attributes to every declared function,
and then `attributes::from_fn_attrs` would have to remove the default
attributes in the case of, e.g. `#[optimize(speed)]` in a `-Os` build.

However, every relevant callsite of `declare_raw_fn` (i.e. where we
actually generate code for the function, and not e.g. a call to an
intrinsic, where optimization attributes don't [?] matter)
calls `from_fn_attrs`, so we can simply remove the attribute setting
from `declare_raw_fn`, and rely on `from_fn_attrs` to apply the correct
attributes all at once.
2022-02-28 00:02:11 -05:00
..
archive_ro.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
diagnostic.rs Remove in_band_lifetimes from rustc_codegen_llvm 2021-12-16 14:43:32 -05:00
ffi.rs Remove LLVM attribute removal 2022-02-28 00:02:11 -05:00
mod.rs Remove LLVM attribute removal 2022-02-28 00:02:11 -05:00