[all-commits] [llvm/llvm-project] 7a8edc: [Clang] Restore replace_path_prefix instead of sta...

sylvain-audi via All-commits all-commits at lists.llvm.org
Wed May 13 10:50:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a8edcb2124b60941ef6ea4bb4b38a9eb0d70137
      https://github.com/llvm/llvm-project/commit/7a8edcb2124b60941ef6ea4bb4b38a9eb0d70137
  Author: Sylvain Audi <sylvain.audi at ubisoft.com>
  Date:   2020-05-13 (Wed, 13 May 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/lib/Lex/PPMacroExpansion.cpp
    A clang/test/Preprocessor/Inputs/include-file-test/file_test.h
    M clang/test/Preprocessor/file_test.c
    R clang/test/Preprocessor/file_test.h
    A clang/test/Preprocessor/file_test_windows.c
    M llvm/include/llvm/Support/Path.h
    M llvm/lib/DWARFLinker/DWARFLinker.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/Support/Path.cpp
    M llvm/unittests/Support/Path.cpp

  Log Message:
  -----------
  [Clang] Restore replace_path_prefix instead of startswith

In D49466, sys::path::replace_path_prefix was used instead startswith for -f[macro/debug/file]-prefix-map options.
However those were reverted later (commit rG3bb24bf25767ef5bbcef958b484e7a06d8689204) due to broken Windows tests.

This patch restores those replace_path_prefix calls.
It also modifies the prefix matching to be case-insensitive under Windows.

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




More information about the All-commits mailing list