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 | a53e50c418310231a915efb07131156c75669b78 (patch) | |
tree | c16348f949459ffa35ed82150b509284e11f0905 /tools/gold | |
parent | 4ab1e666f8b116f3b2444d84a79543ac80851194 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index fd4107eeb18f..144a8eb90da6 100644 --- a/tools/gold/gold-plugin.cpp +++ b/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; } |