| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-08-30 | mv compiler to compiler/ | mark | -316/+0 | |
| 2020-04-29 | Store LLVM bitcode in object files, not compressed | Alex Crichton | -3/+3 | |
| This commit is an attempted resurrection of #70458 where LLVM bitcode emitted by rustc into rlibs is stored into object file sections rather than in a separate file. The main rationale for doing this is that when rustc emits bitcode it will no longer use a custom compression scheme which makes it both easier to interoperate with existing tools and also cuts down on compile time since this compression isn't happening. The blocker for this in #70458 turned out to be that native linkers didn't handle the new sections well, causing the sections to either trigger bugs in the linker or actually end up in the final linked artifact. This commit attempts to address these issues by ensuring that native linkers ignore the new sections by inserting custom flags with module-level inline assembly. Note that this does not currently change the API of the compiler at all. The pre-existing `-C bitcode-in-rlib` flag is co-opted to indicate whether the bitcode should be present in the object file or not. Finally, note that an important consequence of this commit, which is also one of its primary purposes, is to enable rustc's `-Clto` bitcode loading to load rlibs produced with `-Clinker-plugin-lto`. The goal here is that when you're building with LTO Cargo will tell rustc to skip codegen of all intermediate crates and only generate LLVM IR. Today rustc will generate both object code and LLVM IR, but the object code is later simply thrown away, wastefully. | ||||
| 2020-03-20 | remove redundant returns (clippy::needless_return) | Matthias Krüger | -1/+1 | |
| 2020-03-16 | use direct imports for `rustc::{lint, session}`. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-02 | Normalize `syntax::symbol` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-22 | Format the world | Mark Rousskov | -73/+70 | |
| 2019-10-22 | Fix issue #64153 by checking for .rcgu.o suffix when trying to identify Rust ↵ | Michael Woerister | -2/+4 | |
| generated object files. | ||||
| 2019-09-11 | Use `Symbol` in `Linker`. | Nicholas Nethercote | -1/+2 | |
| 2019-07-07 | Rollup merge of #62286 - petrhosek:rustc-no-duplicate-archives, r=cramertj | Mazdak Farrokhzad | -3/+16 | |
| Check if the archive has already been added to avoid duplicates This avoids adding archives multiple times, which results in duplicate objects in the resulting rlib, leading to symbol collision and link failures. This could happen when crate contains multiple link attributes that all reference the same archive. | ||||
| 2019-07-02 | Check if the archive has already been added to avoid duplicates | Petr Hosek | -3/+16 | |
| This avoids adding archives multiple times, which results in duplicate objects in the resulting rlib, leading to symbol collision and link failures. This could happen when crate contains multiple link attributes that all reference the same archive. | ||||
| 2019-07-01 | Convert more usages over | Chris Gregory | -2/+2 | |
| 2019-04-20 | Make link functions generic over archive builder | bjorn3 | -37/+54 | |
| 2019-04-20 | Move some filename constants to cg_ssa | bjorn3 | -2/+1 | |
| 2019-02-25 | librustc_codegen_llvm: deny(elided_lifetimes_in_paths) | Mazdak Farrokhzad | -1/+1 | |
| 2019-02-18 | librustc_codegen_llvm => 2018 | Taiki Endo | -5/+4 | |
| 2019-02-10 | rustc: doc comments | Alexander Regueiro | -1/+1 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-11-16 | Separating the back folder between backend-agnostic and LLVM-specific code | Denis Merigoux | -2/+2 | |
| 2018-11-10 | codegen_llvm_back: use to_owned instead of to_string with string literals | ljedrz | -1/+1 | |
| 2018-11-10 | codegen_llvm_back: improve common patterns | ljedrz | -7/+2 | |
| 2018-11-10 | codegen_llvm_back: remove explicit returns | ljedrz | -9/+9 | |
| 2018-11-10 | codegen_llvm_back: use Cow<'static, str> where applicable | ljedrz | -2/+1 | |
| 2018-11-10 | codegen_llvm_back: whitespace & formatting fixes | ljedrz | -0/+1 | |
| 2018-11-03 | Move cg_llvm::back::linker to cg_utils | bjorn3 | -23/+1 | |
| 2018-07-30 | rustc_codegen_llvm: use safe references for RustArchiveMember. | Irina Popa | -10/+10 | |
| 2018-07-30 | rustc_codegen_llvm: use safe references for ArchiveChild. | Irina Popa | -3/+3 | |
| 2018-07-30 | rustc_codegen_llvm: move from empty enums to extern types. | Irina Popa | -4/+4 | |
| 2018-07-27 | Prefer to_string() to format!() | ljedrz | -1/+1 | |
| 2018-07-11 | Deny bare trait objects in in src/librustc_codegen_llvm | ljedrz | -1/+1 | |
| 2018-05-17 | Rename trans to codegen everywhere. | Irina Popa | -0/+325 | |
