diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-08-18 00:12:33 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-08-18 00:12:33 +0000 |
commit | eccffada338fe084676876138b2e5e183d708757 (patch) | |
tree | 6345d72788f7e4b081d914b4789ac3fb39d251e0 /llvm/tools/gold/gold-plugin.cpp | |
parent | 1fb2ecc9030c288fcbe32bca11c1b5a07414c13c (diff) | |
download | bcm5719-llvm-eccffada338fe084676876138b2e5e183d708757.tar.gz bcm5719-llvm-eccffada338fe084676876138b2e5e183d708757.zip |
[LTO] Change addSaveTemps API: do not add dot to the supplied prefix path
Summary:
It does not play well with directories (end up with a bunch of hidden
files).
Also, do not strip the 0 suffix for the first task, especially since
0 can be used by ThinLTO as well now.
Reviewers: tejohnson
Subscribers: mehdi_amini, pcc, llvm-commits
Differential Revision: https://reviews.llvm.org/D23612
llvm-svn: 279014
Diffstat (limited to 'llvm/tools/gold/gold-plugin.cpp')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index fd4107eeb18..144a8eb90da 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -796,7 +796,8 @@ static std::unique_ptr<LTO> createLTO() { break; case options::OT_SAVE_TEMPS: - check(Conf.addSaveTemps(output_name, /* UseInputModulePath */ true)); + check(Conf.addSaveTemps(output_name + ".", + /* UseInputModulePath */ true)); break; } |