summaryrefslogtreecommitdiff
path: root/test/tools/llvm-cov/Inputs
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-05-02 20:01:24 +0000
committerJustin Bogner <mail@justinbogner.com>2014-05-02 20:01:24 +0000
commit688567e91cf42fcffec70eb8abf2c6c31b7add4a (patch)
treebee1f6787ee72f4f7990458ab14d663cd291b528 /test/tools/llvm-cov/Inputs
parent1913eeb38536036a256ca96591dbc0f76e4bcf12 (diff)
downloadllvm-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.gcdabin0 -> 164 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/range_based_for.gcnobin0 -> 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
new file mode 100644
index 0000000000..df51888d48
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/range_based_for.gcda
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/range_based_for.gcno b/test/tools/llvm-cov/Inputs/range_based_for.gcno
new file mode 100644
index 0000000000..5f30acf12f
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/range_based_for.gcno
Binary files differ