[gold] -thinlto-object-suffix-replace: don't append new suffix if path does not end...
authorFangrui Song <maskray@google.com>
Wed, 22 Aug 2018 02:11:36 +0000 (02:11 +0000)
committerFangrui Song <maskray@google.com>
Wed, 22 Aug 2018 02:11:36 +0000 (02:11 +0000)
commit9ba5740ba56c23aedc05b70bf8028dd3cad82a83
tree6f2dac98ea42cbeb262a9d128207d6c8e4a0bd24
parent476068682336cc7303ff151b25efc03bb7c6ada7
[gold] -thinlto-object-suffix-replace: don't append new suffix if path does not end with old suffix

Summary: This is to be consistent with lld behavior since rLLD340364.

Reviewers: tejohnson

Reviewed By: tejohnson

Subscribers: steven_wu, eraman, mehdi_amini, inglorion, dexonsmith, llvm-commits

Differential Revision: https://reviews.llvm.org/D51060

llvm-svn: 340380
llvm/test/tools/gold/X86/thinlto_object_suffix_replace.ll
llvm/tools/gold/gold-plugin.cpp