diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-05-02 20:01:24 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-05-02 20:01:24 +0000 |
commit | 688567e91cf42fcffec70eb8abf2c6c31b7add4a (patch) | |
tree | bee1f6787ee72f4f7990458ab14d663cd291b528 /test/tools/llvm-cov/Inputs | |
parent | 1913eeb38536036a256ca96591dbc0f76e4bcf12 (diff) | |
download | llvm-688567e91cf42fcffec70eb8abf2c6c31b7add4a.tar.gz llvm-688567e91cf42fcffec70eb8abf2c6c31b7add4a.tar.bz2 llvm-688567e91cf42fcffec70eb8abf2c6c31b7add4a.tar.xz |
llvm-cov: Fix handling of line zero appearing in a line table
Reading line tables in llvm-cov was pretty broken, but would happen to
work as long as no line in the table was 0. It's not clear to me
whether a line of zero *should* show up in these tables, but deciding
to read a string in the middle of the line table is certainly the
wrong thing to do if it does.
I've also added some comments, as trying to figure out what this block
of code was doing was fairly unpleasant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov/Inputs')
-rw-r--r-- | test/tools/llvm-cov/Inputs/range_based_for.gcda | bin | 0 -> 164 bytes |
-rw-r--r-- | test/tools/llvm-cov/Inputs/range_based_for.gcno | bin | 0 -> 552 bytes |
2 files changed, 0 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/Inputs/range_based_for.gcda b/test/tools/llvm-cov/Inputs/range_based_for.gcda Binary files differnew file mode 100644 index 0000000000..df51888d48 --- /dev/null +++ b/test/tools/llvm-cov/Inputs/range_based_for.gcda diff --git a/test/tools/llvm-cov/Inputs/range_based_for.gcno b/test/tools/llvm-cov/Inputs/range_based_for.gcno Binary files differnew file mode 100644 index 0000000000..5f30acf12f --- /dev/null +++ b/test/tools/llvm-cov/Inputs/range_based_for.gcno |