llvm-cov: Expect a source file as a positional parameter
authorJustin Bogner <mail@justinbogner.com>
Wed, 29 Jan 2014 21:31:34 +0000 (21:31 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 29 Jan 2014 21:31:34 +0000 (21:31 +0000)
commit5119fd5e0f1771a2ad52a33d7b3b2de3c1e38934
tree7d17f44dbd3973a7b6c3c78df63f897fad870f1c
parent94b3a88395ff0ea6c253efe5dd2b9d400ffe7c9d
llvm-cov: Expect a source file as a positional parameter

Currently, llvm-cov isn't command-line compatible with gcov, which
accepts a source file name as its first parameter and infers the gcno
and gcda file names from that. This change keeps our -gcda and -gcno
options available for convenience in overriding this behaviour, but
adds the required parameter and inference behaviour as a compatible
default.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200417 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-cov/llvm-cov.test
tools/llvm-cov/llvm-cov.cpp