Commit Graph

345 Commits

Author SHA1 Message Date
bjorn3
c68e76c33b Implement variadic function calling 2019-02-11 19:18:52 +01:00
bjorn3
4bb8bfca94 Disable macOS debuginfo and on all platforms optimizations 2019-02-11 19:11:55 +01:00
bjorn3
5b3867430f Fix "offset" intrinsic
It didn't multiply the offset given by the pointee type size.
2019-02-11 18:50:26 +01:00
bjorn3
a272efa030 Fix alloc_example 2019-02-11 15:29:46 +01:00
bjorn3
19f9810a0f Rustup to rustc 1.34.0-nightly (0b7af2668 2019-02-10) 2019-02-11 15:10:28 +01:00
Philip Craig
e2a869e166 Update gimli 2019-02-11 17:05:38 +10:00
bjorn3
1eba7e5f5e Implement drop for trait objects 2019-02-08 17:20:24 +01:00
bjorn3
c8f19f1cb2 Make codegen_call_inner a bit more readable 2019-02-07 20:28:55 +01:00
bjorn3
c6bf784d39 Misc changes 2019-02-06 19:07:21 +01:00
bjorn3
43f4dc6220 Fix some warnings 2019-02-06 18:49:59 +01:00
bjorn3
059b589407 Implement dynamic dispatch for self: Box<T> 2019-02-06 18:44:13 +01:00
bjorn3
e1620402e0 Introduce CPlace::NoPlace for zst's 2019-02-04 19:58:29 +01:00
bjorn3
d0c81d259a Take stack_addr in advance for locals to avoid many duplicate instructions 2019-02-04 19:44:16 +01:00
bjorn3
feec354d65 Introduce CPlace::Stack 2019-02-04 19:32:32 +01:00
bjorn3
3e24c1212f Refactor CPlace address handling 2019-02-04 19:32:29 +01:00
bjorn3
0d16dcfce1 Don't try to store func_addr for FnDef in trans_const_value
This would crash, because the place provides 0 bytes of space for FnDef
2019-02-03 14:11:24 +01:00
bjorn3
849f7f7041 Update gimli 2019-02-02 11:48:09 +01:00
bjorn3
99e43822b4 Misc debuginfo.rs changes 2019-02-01 19:31:26 +01:00
bjorn3
805af227b6 Fix line debuginfo malformness in presence of macros 2019-01-30 14:57:08 +01:00
bjorn3
bdf1320508 Fix panic_if_uninhabited intrinsic 2019-01-26 17:41:04 +01:00
bjorn3
00e6462334 Fix offset addend mixup 2019-01-26 17:40:33 +01:00
bjorn3
4fbff29a4a Misc debuginfo change 2019-01-26 14:06:02 +01:00
bjorn3
c4d010b8a5 Deduplicate debug section defining and linking 2019-01-26 12:49:33 +01:00
bjorn3
ddbbb267b6 Update gimli 2019-01-26 12:37:49 +01:00
bjorn3
36f6e2f508 Use FileIndex for DW_AT_decl_file and omit .debug_ranges and .debug_rnglists when empty 2019-01-26 12:28:54 +01:00
bjorn3
cf7ee00afd Improve it a bit 2019-01-26 11:59:57 +01:00
bjorn3
a12eef4d86 Use IndexSet and keep full source info in set_debug_loc 2019-01-26 11:59:57 +01:00
bjorn3
6b5cbc540d Use gimli's byteorder in debuginfo.rs 2019-01-26 11:59:57 +01:00
bjorn3
8bddc783e0 Update gimli 2019-01-26 11:59:57 +01:00
bjorn3
d61ceeca7c Generate lineinfo for default srcloc 2019-01-26 11:59:57 +01:00
bjorn3
09c4569c87 Implement line debuginfo 2019-01-26 11:59:57 +01:00
bjorn3
9e609db886 Rustup to rustc 1.33.0-nightly (bf669d1e3 2019-01-25) 2019-01-26 11:59:34 +01:00
bjorn3
8aee796013 Update Cargo.lock and use emit_small_memcpy 2019-01-15 20:35:49 +01:00
bjorn3
5a931acb48 Improve global name for anonymous allocations 2019-01-12 15:16:09 +01:00
bjorn3
8a586eb6cb Rustup to rustc 1.33.0-nightly (68fe5182c 2019-01-05) 2019-01-06 15:27:20 +01:00
bjorn3
144ff955d6 Use layout.abi 2019-01-02 14:03:56 +01:00
bjorn3
a15af1ccba Rename load_value to load_scalar and make it support all Abi::Scalar types 2019-01-02 13:39:02 +01:00
bjorn3
c7101bbfd4 Some cleanup of abi.rs 2019-01-02 12:20:32 +01:00
bjorn3
16e43c9d21 Fix unsize coercions and the size_of_val and min_align_of_val intrinsics for custom dst's 2018-12-29 15:36:17 +01:00
bjorn3
8f2ca706c2 Setup env_logger 2018-12-29 12:04:35 +01:00
bjorn3
bebaa83c4a Add 'set is_pic' to clif files 2018-12-28 18:48:47 +01:00
bjorn3
8561349ece Only build clif comments in debug mode 2018-12-28 17:09:38 +01:00
bjorn3
56133d1b18 Fix release mode 2018-12-28 15:18:35 +01:00
bjorn3
3e40f150d0 Add some more clif comments 2018-12-27 10:59:01 +01:00
bjorn3
af78c9a10e Reduce duplication in abi.rs a bit 2018-12-26 11:15:42 +01:00
bjorn3
2c25b29c9c Simplify argument storage 2018-12-25 16:54:41 +01:00
bjorn3
7ea7d021ca Rustup to rustc 1.33.0-nightly (ddab10a69 2018-12-23) 2018-12-24 14:50:18 +01:00
bjorn3
3d05ff922c Use the linkage and visibility produced by tcx.collect_and_partition_mono_itemscc #209 2018-12-23 19:41:35 +01:00
bjorn3
0b4ede39e5 Add pretty param and local info comments to clif 2018-12-22 18:21:30 +01:00
bjorn3
9882576497 Improve debug messages in generated clif files 2018-12-22 18:21:30 +01:00