rust/compiler/rustc_llvm
Matthias Krüger 2707cd670c
Rollup merge of #132319 - Zalathar:add-module-flag, r=jieyouxu
cg_llvm: Clean up FFI calls for setting module flags

This is a combination of several inter-related changes to how module flags are set:

- Remove some unnecessary code for setting an `"LTOPostLink"` flag, which has been obsolete since LLVM 17.
- Define our own enum instead of relying on enum values defined by LLVM's unstable C++ API.
- Use safe wrapper functions to set module flags, instead of direct `unsafe` calls.
- Consistently pass pointer/length strings instead of C strings.
- Remove or shrink some `unsafe` blocks.
2024-10-29 18:38:59 +01:00
..
llvm-wrapper Rollup merge of #132319 - Zalathar:add-module-flag, r=jieyouxu 2024-10-29 18:38:59 +01:00
src update cfgs 2024-09-05 17:24:01 +01:00
build.rs Add system libs when cross compiling for Windows 2024-09-15 12:38:55 +00:00
Cargo.toml Unpin cc and upgrade to the latest version 2024-09-30 13:31:42 -04:00