diff options
author | Luke Cheeseman <luke.cheeseman@arm.com> | 2019-09-13 13:15:35 +0000 |
---|---|---|
committer | Luke Cheeseman <luke.cheeseman@arm.com> | 2019-09-13 13:15:35 +0000 |
commit | a3b46043f1b5d591f0772f2da54f3277303e7d45 (patch) | |
tree | a22d23adf288045f6699ef998dc2b8827492abbd /lib/CodeGen | |
parent | f5ae2881e6c3ca5c6d7f832f046d762ba46c537c (diff) | |
download | clang-a3b46043f1b5d591f0772f2da54f3277303e7d45.tar.gz |
Fix depfile name construction
- When using -o, the provided filename is using for constructing the depfile
name (when -MMD is passed).
- The logic looks for the rightmost '.' character and replaces what comes after
with 'd'.
- This works incorrectly when the filename has no extension and the directories
have '.' in them (e.g. out.dir/test)
- This replaces the funciton to just llvm::sys::path functionality
Differential Revision: https://reviews.llvm.org/D67542
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
0 files changed, 0 insertions, 0 deletions