llvm-cov: Handle functions with no line number
authorJustin Bogner <mail@justinbogner.com>
Wed, 26 Mar 2014 22:03:06 +0000 (22:03 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 26 Mar 2014 22:03:06 +0000 (22:03 +0000)
commit2a6873fdf3fa413cd7ef09b368fab64aa936d027
tree8f4ce3706adbf461c1702131c289203bb8b0cf03
parent70ea745ec8b91327874c0f8166d8471e4c377f37
llvm-cov: Handle functions with no line number

Functions may in an instrumented binary but not in the original source
when they're inserted by the compiler or the runtime. These functions
aren't meaningful to the user, so teach llvm-cov to skip over them
instead of crashing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204863 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/GCOV.cpp
test/tools/llvm-cov/Inputs/copy_block_helper.gcda [new file with mode: 0644]
test/tools/llvm-cov/Inputs/copy_block_helper.gcno [new file with mode: 0644]
test/tools/llvm-cov/copy_block_helper.m [new file with mode: 0644]
test/tools/llvm-cov/lit.local.cfg