summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo
AgeCommit message (Collapse)AuthorLines
2018-10-19Prefer `Default::default` over `FxHash*::default` in struct constructorsOliver Scherer-13/+5
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-6/+6
2018-10-18Rollup merge of #54933 - ljedrz:cleanup_codegen_llvm/misc, r=varkorkennytm-64/+58
Cleanup the rest of codegen_llvm - improve common patterns - convert string literals with `to_owned` - remove explicit `return`s - whitespace & formatting improvements
2018-10-16end return statements and void expressions with a semicolonljedrz-6/+6
2018-10-13Check the invariant for `principal` inside the methodOliver Scherer-14/+7
2018-10-09codegen_llvm/misc: convert string literals with to_ownedljedrz-5/+5
2018-10-09codegen_llvm/misc: improve common patternsljedrz-38/+32
2018-10-09codegen_llvm/misc: remove explicit returnsljedrz-5/+5
2018-10-09codegen_llvm/misc: whitespace & formatting improvementsljedrz-16/+16
2018-10-03Introduce `TyKind::UnnormalizedProjection`scalexm-0/+1
2018-09-30use is_uninhabited in more placesJorge Aparicio-1/+1
2018-09-29Revert "Auto merge of #53508 - japaric:maybe-uninit, r=RalfJung"Ralf Jung-1/+1
This reverts commit c6e3d7fa3113aaa64602507f39d4627c427742ff, reversing changes made to 4591a245c7eec9f70d668982b1383cd2a6854af5.
2018-09-22use is_uninhabited in more placesJorge Aparicio-1/+1
2018-09-20Rollup merge of #54233 - irinagpopa:llvm-3.9, r=tromeykennytm-7/+1
Remove LLVM 3.9 workaround.
2018-09-18Merge indexed_set.rs into bitvec.rs, and rename it bit_set.rs.Nicholas Nethercote-3/+3
Currently we have two files implementing bitsets (and 2D bit matrices). This commit combines them into one, taking the best features from each. This involves renaming a lot of things. The high level changes are as follows. - bitvec.rs --> bit_set.rs - indexed_set.rs --> (removed) - BitArray + IdxSet --> BitSet (merged, see below) - BitVector --> GrowableBitSet - {,Sparse,Hybrid}IdxSet --> {,Sparse,Hybrid}BitSet - BitMatrix --> BitMatrix - SparseBitMatrix --> SparseBitMatrix The changes within the bitset types themselves are as follows. ``` OLD OLD NEW BitArray<C> IdxSet<T> BitSet<T> -------- ------ ------ grow - grow new - (remove) new_empty new_empty new_empty new_filled new_filled new_filled - to_hybrid to_hybrid clear clear clear set_up_to set_up_to set_up_to clear_above - clear_above count - count contains(T) contains(&T) contains(T) contains_all - superset is_empty - is_empty insert(T) add(&T) insert(T) insert_all - insert_all() remove(T) remove(&T) remove(T) words words words words_mut words_mut words_mut - overwrite overwrite merge union union - subtract subtract - intersect intersect iter iter iter ``` In general, when choosing names I went with: - names that are more obvious (e.g. `BitSet` over `IdxSet`). - names that are more like the Rust libraries (e.g. `T` over `C`, `insert` over `add`); - names that are more set-like (e.g. `union` over `merge`, `superset` over `contains_all`, `domain_size` over `num_bits`). Also, using `T` for index arguments seems more sensible than `&T` -- even though the latter is standard in Rust collection types -- because indices are always copyable. It also results in fewer `&` and `*` sigils in practice.
2018-09-14Remove LLVM 3.9 workaround.Unknown-7/+1
2018-09-11renamed is_nil to is_unitkenta7777-1/+1
2018-09-11Revert "renamed is_nil to is_unit"kenta7777-1/+1
This reverts commit 6f685ffad42a2d12dd1fad5ccb0471e7fa260826.
2018-09-10renamed is_nil to is_unitkenta7777-1/+1
2018-09-05Changing TyAnon -> TyOpaque and relevant functionsms2300-1/+1
2018-08-23use String::new() instead of String::from(""), "".to_string(), "".to_owned() ↵Matthias Krüger-2/+2
or "".into()
2018-08-22Remove Ty prefix from Ty{Bool|Char|Int|Uint|Float|Str}varkor-18/+18
2018-08-22Remove Ty prefix from Ty{Foreign|Param}varkor-3/+3
2018-08-22Remove Ty prefix from ↵varkor-42/+42
Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
2018-08-22miri/CTFE refactorRalf Jung-0/+1
* Value gets renamed to Operand, so that now interpret::{Place, Operand} are the "dynamic" versions of mir::{Place, Operand}. * Operand and Place share the data for their "stuff is in memory"-base in a new type, MemPlace. This also makes it possible to give some more precise types in other areas. Both Operand and MemPlace have methods available to project into fields (and other kinds of projections) without causing further allocations. * The type for "a Scalar or a ScalarPair" is called Value, and again used to give some more precise types. * All of these have versions with an attached layout, so that we can more often drag the layout along instead of recomputing it. This lets us get rid of `PlaceExtra::Downcast`. MPlaceTy and PlaceTy can only be constructed in place.rs, making sure the layout is handled properly. (The same should eventually be done for ValTy and OpTy.) * All the high-level functions to write typed memory take a Place, and live in place.rs. All the high-level typed functions to read typed memory take an Operand, and live in operands.rs.
2018-08-19mv codemap() source_map()Donato Sciarra-2/+2
2018-08-19mv FileMap SourceFileDonato Sciarra-1/+1
2018-08-10Introduce SmallCStr and use it where applicable.Michael Woerister-43/+42
2018-08-10Introduce const_cstr!() macro and use it where applicable.Michael Woerister-2/+2
2018-08-09Move Fingerprint to data structuresMark Rousskov-1/+2
2018-08-09Move path2cstr to rustc_fs_utilMark Rousskov-1/+1
2018-08-04Normalize DebugInfoLevel to standard styleMark Rousskov-6/+6
2018-08-01Split out growth functionality into BitVector typeMark Rousskov-3/+3
2018-07-30rustc_codegen_llvm: fix ownership of DIBuilder.Irina Popa-4/+14
2018-07-30rustc_codegen_llvm: fix tidy errors.Irina Popa-2/+5
2018-07-30rustc_codegen_llvm: use safe references for Value.Irina Popa-23/+26
2018-07-30rustc_codegen_llvm: use safe references for Metadata and DI*.Irina Popa-245/+287
2018-07-30rustc_codegen_llvm: use safe references for DIBuilder.Irina Popa-5/+5
2018-07-30rustc_codegen_llvm: use safe references for Type.Irina Popa-11/+12
2018-07-30rustc_codegen_llvm: use safe references for Context and Module.Irina Popa-8/+8
2018-07-30rustc_codegen_llvm: move from empty enums to extern types.Irina Popa-64/+67
2018-07-29Replace push loops with collect() and extend() where possibleljedrz-15/+15
2018-07-25parameterize `BitVector` and `BitMatrix` by their index typesNiko Matsakis-3/+3
2018-07-02Emit column info in debuginfo for non msvc like targetsest31-4/+10
2018-06-30Fortify dummy span checkingVadim Petrochenkov-2/+2
2018-05-30rustc: turn mir::LocalDecl's visibility_source_info into a SourceScope.Eduard-Mihai Burtescu-1/+1
2018-05-30rustc: rename mir::LocalDecl's source_info to visibility_source_info.Eduard-Mihai Burtescu-1/+1
2018-05-30rustc: rename mir::VisibilityScope to mir::SourceScope.Eduard-Mihai Burtescu-9/+9
2018-05-26Use `Ident`s for fields in HIRVadim Petrochenkov-3/+3
2018-05-24Add constant for `Size::from_bytes(0)`Oliver Schneider-6/+6