diff options
| author | Fangrui Song <maskray@google.com> | 2018-08-22 02:11:36 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2018-08-22 02:11:36 +0000 |
| commit | 9ba5740ba56c23aedc05b70bf8028dd3cad82a83 (patch) | |
| tree | 6f2dac98ea42cbeb262a9d128207d6c8e4a0bd24 /llvm/test/tools | |
| parent | 476068682336cc7303ff151b25efc03bb7c6ada7 (diff) | |
| download | bcm5719-llvm-9ba5740ba56c23aedc05b70bf8028dd3cad82a83.tar.gz bcm5719-llvm-9ba5740ba56c23aedc05b70bf8028dd3cad82a83.zip | |
[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
Diffstat (limited to 'llvm/test/tools')
| -rw-r--r-- | llvm/test/tools/gold/X86/thinlto_object_suffix_replace.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/X86/thinlto_object_suffix_replace.ll b/llvm/test/tools/gold/X86/thinlto_object_suffix_replace.ll index af0ed39e5f0..26cfa27b296 100644 --- a/llvm/test/tools/gold/X86/thinlto_object_suffix_replace.ll +++ b/llvm/test/tools/gold/X86/thinlto_object_suffix_replace.ll @@ -27,6 +27,17 @@ ; RUN: -shared %t1.thinlink.bc -o %t3 ; RUN: diff %t1.o.thinlto.bc.orig %t1.o.thinlto.bc +; If filename does not end with old suffix, no suffix change should occur, +; so ".thinlto.bc" will simply be appended to the input file name. +; RUN: rm -f %t1.thinlink.bc.thinlto.bc +; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ +; RUN: -m elf_x86_64 \ +; RUN: --plugin-opt=thinlto \ +; RUN: --plugin-opt=thinlto-index-only \ +; RUN: --plugin-opt=thinlto-object-suffix-replace=".abc;.o" \ +; RUN: -shared %t1.thinlink.bc -o /dev/null +; RUN: ls %t1.thinlink.bc.thinlto.bc + target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" |

