OSDN Git Service

Reapply "Adapt gcov to changes in CFE."
authorAdrian Prantl <aprantl@apple.com>
Thu, 6 Dec 2018 18:44:48 +0000 (18:44 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 6 Dec 2018 18:44:48 +0000 (18:44 +0000)
commit0888d7b98ea93ee697d286a2aca34f4f7718d3cf
tree711b463e1f915cab92423ffb068554cb28242705
parentcacd57275d0881f038987be0ccc03a1c8a47a07a
Reapply "Adapt gcov to changes in CFE."

This reverts commit r348203 and reapplies D55085 with an additional
GCOV bugfix to make the change NFC for relative file paths in .gcno files.

Thanks to Ilya Biryukov for additional testing!

Original commit message:

    Update Diagnostic handling for 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.

    https://reviews.llvm.org/D55085

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348512 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DiagnosticInfo.h
lib/IR/DiagnosticInfo.cpp
lib/Transforms/Instrumentation/GCOVProfiling.cpp
test/CodeGen/AMDGPU/vi-removed-intrinsics.ll