[all-commits] [llvm/llvm-project] 612307: [Driver] Escape the program path for -frecord-comm...

Scott Linder via All-commits all-commits at lists.llvm.org
Thu Feb 20 13:34:48 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6123074d0c0de3614f1552f2f2d6b9db7b32cebe
      https://github.com/llvm/llvm-project/commit/6123074d0c0de3614f1552f2f2d6b9db7b32cebe
  Author: Scott Linder <Scott.Linder at amd.com>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/clang_f_opts.c

  Log Message:
  -----------
  [Driver] Escape the program path for -frecord-command-line

Similar to the rest of the command line that is recorded, the program
path must also have spaces and backslashes escaped. Without this
parsing the recorded command line becomes hard on platforms like
Windows where spaces and backslashes are common.

Patch By: Ravi Ramaseshan
Differential Revision: https://reviews.llvm.org/D74811




More information about the All-commits mailing list