summaryrefslogtreecommitdiff
path: root/test/tools/llvm-cov/Inputs/test_paths.h.gcov
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-02-04 10:45:02 +0000
committerJustin Bogner <mail@justinbogner.com>2014-02-04 10:45:02 +0000
commit01c05505841940a899fbfd3e214b5d3214d80ef6 (patch)
treeca02f24ac0384d572f18007daf01d5b3339caf91 /test/tools/llvm-cov/Inputs/test_paths.h.gcov
parent284c931330404e61d548fc1eedf44d5dd1b87507 (diff)
downloadllvm-01c05505841940a899fbfd3e214b5d3214d80ef6.tar.gz
llvm-01c05505841940a899fbfd3e214b5d3214d80ef6.tar.bz2
llvm-01c05505841940a899fbfd3e214b5d3214d80ef6.tar.xz
llvm-cov: Implement the preserve-paths flag
Until now, when a path in a gcno file included a directory, we would emit our .gcov file in that directory, whereas gcov always emits the file in the current directory. In doing so, this implements gcov's strange name-mangling -p flag, which is needed to avoid clobbering files when two with the same name exist in different directories. The path mangling is a bit ugly and only handles unix-like paths, but it's simple, and it doesn't make any guesses as to how it should behave outside of what gcov documents. If we decide this should be cross platform later, we can consider the compatibility implications then. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov/Inputs/test_paths.h.gcov')
-rw-r--r--test/tools/llvm-cov/Inputs/test_paths.h.gcov8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/Inputs/test_paths.h.gcov b/test/tools/llvm-cov/Inputs/test_paths.h.gcov
new file mode 100644
index 0000000000..95e90ca664
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/test_paths.h.gcov
@@ -0,0 +1,8 @@
+ -: 0:Source:srcdir/./nested_dir/../test.h
+ -: 0:Graph:test_paths.gcno
+ -: 0:Data:test_paths.gcda
+ -: 0:Runs:3
+ -: 0:Programs:1
+ 6: 1:struct A {
+ -: 2: virtual void B();
+ -: 3:};