Commit Graph

6 Commits

Author SHA1 Message Date
Vedant Kumar
9c44714561 [Coverage] Do not map function decls with no body
We can't place counters on function decls with no bodies. The old
behavior was to map a fresh counter to a null AST node, which is highly
suspicious at best.
2016-09-12 14:06:17 -07:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Vedant Kumar
ef69fdbef4 [Coverage] Visit the PatternBindingDecl in a ForEachStmt
This fixes a crash which occurs because there is no mapping region
associated with non-static initializers in the loop's iterator.
2016-05-17 13:38:50 -07:00
Manav Gabhawala
7928140f79 [SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary 2016-04-06 20:21:58 -04:00
Erik Eckstein
c0cdbc4510 SILPrinter: only print simplified demangled names in comments.
For long names this is easier to read and in most cases the omitted information can be seen in the actual SIL code.
With the option -Xllvm -sil-full-demangle the old behavior can be restored.
2016-02-09 08:51:47 -08:00
Justin Bogner
d44090d29e InstrProf: Optionally generate coverage maps when profiling
This adds the -profile-coverage-mapping option to swift, and teaches
SILGenProfiling to generate mappings from source ranges to counters.

Swift SVN r25266
2015-02-13 08:42:15 +00:00