[LTO] Change addSaveTemps API: do not add dot to the supplied prefix path
authorMehdi Amini <mehdi.amini@apple.com>
Thu, 18 Aug 2016 00:12:33 +0000 (00:12 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Thu, 18 Aug 2016 00:12:33 +0000 (00:12 +0000)
commiteccffada338fe084676876138b2e5e183d708757
tree6345d72788f7e4b081d914b4789ac3fb39d251e0
parent1fb2ecc9030c288fcbe32bca11c1b5a07414c13c
[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
llvm/lib/LTO/LTOBackend.cpp
llvm/test/LTO/Resolution/X86/alias.ll
llvm/test/LTO/Resolution/X86/comdat.ll
llvm/test/tools/gold/X86/opt-level.ll
llvm/tools/gold/gold-plugin.cpp
llvm/tools/llvm-lto2/llvm-lto2.cpp