about summary refs log tree commit diff
path: root/src/librustc_codegen_ssa/traits/statics.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-24/+0
2020-07-17Generating the coverage mapRich Kadel-0/+12
rustc now generates the coverage map and can support (limited) coverage report generation, at the function level. Example: $ BUILD=$HOME/rust/build/x86_64-unknown-linux-gnu $ $BUILD/stage1/bin/rustc -Zinstrument-coverage \ $HOME/rust/src/test/run-make-fulldeps/instrument-coverage/main.rs $ LLVM_PROFILE_FILE="main.profraw" ./main called $ $BUILD/llvm/bin/llvm-profdata merge -sparse main.profraw -o main.profdata $ $BUILD/llvm/bin/llvm-cov show --instr-profile=main.profdata main 1| 1|pub fn will_be_called() { 2| 1| println!("called"); 3| 1|} 4| | 5| 0|pub fn will_not_be_called() { 6| 0| println!("should not have been called"); 7| 0|} 8| | 9| 1|fn main() { 10| 1| let less = 1; 11| 1| let more = 100; 12| 1| 13| 1| if less < more { 14| 1| will_be_called(); 15| 1| } else { 16| 1| will_not_be_called(); 17| 1| } 18| 1|}
2020-04-02nix rustc_target::abi::* reexport in ty::layoutMazdak Farrokhzad-1/+1
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-1/+1
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-1/+1
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-1/+1
2019-10-27Always use consteval to codegen caller_location.Adam Perry-2/+0
2019-10-27Panicking infra uses &core::panic::Location.Adam Perry-9/+0
This allows us to remove `static_panic_msg` from the SSA<->LLVM boundary, along with its fat pointer representation for &str. Also changes the signature of PanicInfo::internal_contructor to avoid copying. Closes #65856.
2019-10-27Implement core::intrinsics::caller_location.Adam Perry-0/+2
Returns a `&core::panic::Location` corresponding to where it was called, also making `Location` a lang item.
2019-09-04Remove `LocalInternedString` uses from `librustc_codegen_llvm`.Nicholas Nethercote-3/+3
2019-06-11rustc_codegen_*: deny(unused_lifetimes).Eduard-Mihai Burtescu-1/+1
2019-03-29Remove const_{cstr,str_slice,get_elt,get_real} and is_const_real methods ↵bjorn3-0/+9
from cg_ssa This introduces the static_panic_msg trait method to StaticBuilderMethods.
2019-03-29Miscbjorn3-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-11-29Move get_static from CodegenCx to Builderbjorn3-1/+4
2018-11-29Remove static_addr_of_mut from cg_ssabjorn3-1/+0
2018-11-29Rename StaticMethods::static_ptrcast to ConstMethods::const_ptrcastbjorn3-1/+0
2018-11-29Remove static_bitcast from cg_ssabjorn3-1/+0
2018-11-29Remove static_replace_all_uses and statics_to_rauw from cg_ssabjorn3-1/+0
2018-11-29Make ConstMethods and StaticMethods require BackendTypes instead of Backendbjorn3-2/+2
2018-11-16[eddyb] rustc_codegen_ssa: rename `interfaces` to `traits`.Eduard-Mihai Burtescu-0/+23