[all-commits] [llvm/llvm-project] d7fa92: [clang] Apply -fcoverage-prefix-map reverse order

gulfemsavrun via All-commits all-commits at lists.llvm.org
Wed Apr 26 17:24:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7fa92126cc398b993f301273816739b23ed8740
      https://github.com/llvm/llvm-project/commit/d7fa92126cc398b993f301273816739b23ed8740
  Author: Gulfem Savrun Yeniceri <gulfem at google.com>
  Date:   2023-04-27 (Thu, 27 Apr 2023)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CoverageMappingGen.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/Profile/coverage-prefix-map.c

  Log Message:
  -----------
  [clang] Apply -fcoverage-prefix-map reverse order

This patch changes handling multiple -fcoverage-prefix-map options to
match GCC's behavior. GCC applies prefix remappings that are provided
in reverse order (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109591).

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D148757




More information about the All-commits mailing list