summary refs log tree commit diff
path: root/src/librustc_codegen_utils
AgeCommit message (Collapse)AuthorLines
2019-06-20rename hir::map::get_by_hir_id to getljedrz-1/+1
2019-06-14Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-5/+3
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-16/+16
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-2/+1
2019-06-12rustc: remove some unnecessary lifetimes in -> TyCtxt methods.Eduard-Mihai Burtescu-2/+2
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-12/+12
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-3/+3
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-21/+21
2019-06-11rustc_codegen_*: deny(unused_lifetimes).Eduard-Mihai Burtescu-0/+1
2019-06-08Remove unused `#![feature(custom_attribute)]`sVadim Petrochenkov-1/+0
2019-06-02remove unneeded depsMark Mansi-1/+0
2019-06-02move monoitemext to inherent methodsMark Mansi-2/+1
2019-06-02remove reexports of mir::mono::{MonoItem,CodegenUnit}Mark Mansi-1/+2
2019-06-02remove reexport of rustc::ty::InstanceMark Mansi-8/+4
2019-06-01codegen: change `$6d$` to `$u6d$`David Wood-1/+1
This changes a mistake introduced in #61195 where the mangling workaround used was incorrect.
2019-05-31rustc_codegen_utils: remove symbol name dumping/checking harness, and mw impl.Eduard-Mihai Burtescu-1018/+11
2019-05-31rustc_codegen_utils: update mw's symbol mangler implementation.Eduard-Mihai Burtescu-167/+218
2019-05-31rustc_codegen_utils: add harness for dumping/checking symbol names, and mw ↵Eduard-Mihai Burtescu-3/+954
mangling impl.
2019-05-31rustc_codegen_utils: don't ignore `Ctor` path components in symbols.Eduard-Mihai Burtescu-3/+1
2019-05-31rustc_codegen_utils: add new mangling scheme implementation.Eduard-Mihai Burtescu-486/+1190
2019-05-31rustc_codegen_utils: test demangler output, not just symbol names.Eduard-Mihai Burtescu-2/+7
2019-05-30Symbol name predicate list printed `+` excessivelyOliver Scherer-1/+1
2019-05-29Rollup merge of #61195 - davidtwco:seg-fault-mangler, r=eddybMazdak Farrokhzad-0/+3
Special-case `.llvm` in mangler Fixes #60925 and fixes #53912. r? @michaelwoerister cc @eddyb
2019-05-28Special-case `.llvm` in mangler to fix segfaultsDavid Wood-0/+3
This commit special cases `.llvm` in the mangler to print `.llvm$6d$` instead. This will avoid segfaults when names in a user's Rust code are `llvm`.
2019-05-26centralize Scalar size sanity checks and also do them in release buildsRalf Jung-1/+1
2019-05-25Only print integers in symbol path's constantsOliver Scherer-2/+10
2019-05-25rustc: integrate ty::Const into ty::print as print_const.Eduard-Mihai Burtescu-0/+8
2019-05-21Remove impls for `InternedString`/string equality.Nicholas Nethercote-2/+2
`Symbol` received the same treatment in #60630. Also, we can derive `PartialEq` for `InternedString`.
2019-05-20Introduce `InternedString::intern`.Nicholas Nethercote-6/+6
`InternedString::intern(x)` is preferable to `Symbol::intern(x).as_interned_str()`, because the former involves one call to `with_interner` while the latter involves two. The case within InternedString::decode() is particularly hot, and this change reduces the number of `with_interner` calls by up to 13%.
2019-05-13Remove the equality operation between `Symbol` and strings.Nicholas Nethercote-1/+1
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-5/+7
2019-04-30Move metadata encoding earlier.Nicholas Nethercote-1/+3
This commit separates metadata encoding (`tcx.encode_metadata`) from the creation of the metadata module (which is now handled by `write_compressed_metadata`, formerly `write_metadata`). The metadata encoding now occurs slightly earlier in the pipeline, at the very start of code generation within `start_codegen`. Metadata *writing* still occurs near the end of compilation; that will be moved forward in subsequent commits.
2019-04-17Deny `internal` in stage0Mateusz Mikuła-1/+1
2019-04-03Deny internal lints on non conflicting cratesflip1995-0/+1
- libarena - librustc_allocator - librustc_borrowck - librustc_codegen_ssa - librustc_codegen_utils - librustc_driver - librustc_errors - librustc_incremental - librustc_metadata - librustc_passes - librustc_privacy - librustc_resolve - librustc_save_analysis - librustc_target - librustc_traits - libsyntax - libsyntax_ext - libsyntax_pos
2019-03-29rustc(codegen): uncache `def_symbol_name` prefix from `symbol_name`.Eduard-Mihai Burtescu-38/+15
2019-03-24Merge `DefPathData::VariantCtor` and `DefPathData::StructCtor`Vadim Petrochenkov-1/+1
2019-03-16Remove MetadataOnlyCodegenBackendbjorn3-146/+2
2019-03-15rustc: provide DisambiguatedDefPathData in ty::print.Eduard-Mihai Burtescu-4/+22
2019-03-15rustc: slice substs in ty::print instead of passing the full ones.Eduard-Mihai Burtescu-2/+2
2019-03-15rustc: remove PrintCx from ty::Print and rely on printers carrying TyCtxt.Eduard-Mihai Burtescu-87/+90
2019-03-15rustc: remove the ability for pretty-printers to override nesting.Eduard-Mihai Burtescu-4/+4
2019-03-15rustc: don't thread existential projections through path_generic_args.Eduard-Mihai Burtescu-9/+45
2019-03-15rustc: make `pretty_path_generic_args`' task as simple as possible.Eduard-Mihai Burtescu-4/+9
2019-03-15rustc: print elided regions as '_ instead of nothing, and use a separate ↵Eduard-Mihai Burtescu-1/+1
check when optional.
2019-03-15rustc: move ty::print::PrintConfig's fields to FmtPrinter.Eduard-Mihai Burtescu-10/+9
2019-03-15rustc_codegen_utils: print all nominal types as paths, in symbol names.Eduard-Mihai Burtescu-2/+28
2019-03-15rustc: don't pass Namespace explicitly, but rather track it in FmtPrinter.Eduard-Mihai Burtescu-6/+3
2019-03-15rustc: introduce a ty::print::PrettyPrinter helper for printing "<...>".Eduard-Mihai Burtescu-45/+23
2019-03-15rustc: support overriding type printing in ty::print::Printer.Eduard-Mihai Burtescu-0/+8
2019-03-15rustc: support overriding region printing in ty::print::Printer.Eduard-Mihai Burtescu-1/+16