Adapt gcov to changes in CFE.
authorAdrian Prantl <aprantl@apple.com>
Mon, 3 Dec 2018 22:37:48 +0000 (22:37 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 3 Dec 2018 22:37:48 +0000 (22:37 +0000)
commit40eb6223257aaf087030bef9c85764a1d97e7841
tree7cff5b8fc49469099aa95f9e7dddc0ceb42e7f41
parent1dbbc5f64053fc8c9460355d6615adeb988709ae
Adapt gcov to changes in CFE.

The clang frontend no longer emits the current working directory for
DIFiles containing an absolute path in the filename: and will move the
common prefix between current working directory and the file into the
directory: component.

This fixes the GCOV tests in compiler-rt that were broken by the Clang
change.

llvm-svn: 348203
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp