Merge pull request #8507 from mshinwell/flambda_name_mangling

Shorten symbol names of anonymous functions in Flambda mode
master
Nicolás Ojeda Bär 2019-03-18 12:31:01 +01:00 committed by GitHub
commit db1e59d727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,10 @@ Working version
iOS and other Darwin targets.
(Mark Shinwell, review by Nicolas Ojeda Bar and Xavier Leroy)
- GPR#8507: Shorten symbol names of anonymous functions in Flambda mode
(the directory portions are now hidden)
(Mark Shinwell, review by Nicolás Ojeda Bär)
### Compiler user-interface and warnings:
* GPR#2276: Remove support for compiler plugins and hooks (also adds

View File

@ -299,8 +299,8 @@ let anon_fn_with_loc (loc: Location.t) =
if startchar >= 0 then Format.fprintf ppf ",%i--%i" startchar endchar in
if loc.Location.loc_ghost then "anon_fn"
else
Format.asprintf "anon_fn[%a:%i%t]"
Location.print_filename file line pp_chars
Format.asprintf "anon_fn[%s:%i%t]"
(Filename.basename file) line pp_chars
let of_primitive : Lambda.primitive -> string = function
| Pidentity -> pidentity