diff options
author | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-05-13 21:18:15 +0000 |
---|---|---|
committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-05-13 21:18:15 +0000 |
commit | 64441def5869166d21bed7db632f8afa4e0ac7d5 (patch) | |
tree | 1afd08654020992bd67e79791e4b4238d324f7f1 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b4c61f889faee9fa94de9824f5078a45de20af89 (diff) | |
download | bcm5719-llvm-64441def5869166d21bed7db632f8afa4e0ac7d5.tar.gz bcm5719-llvm-64441def5869166d21bed7db632f8afa4e0ac7d5.zip |
Fix dependency file escaping.
When writing a dependency (.d) file, if space or # is immediately
preceded by one or more backslashes, escape the backslashes as well as
the space or # character. Otherwise leave backslash alone.
This straddles the fence between BSD Make (which does no escaping at
all, and does not support space or # in filespecs) and GNU Make (which
does support escaping, but will fall back to the filespec as-written
if the escaping doesn't match an existing file).
Differential Revision: http://reviews.llvm.org/D9208
llvm-svn: 237296
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions