forked from OSchip/llvm-project
parent
b1c59e3f30
commit
52d783962f
|
@ -1247,7 +1247,7 @@ std::string elf::replaceThinLTOSuffix(StringRef Path) {
|
|||
|
||||
if (!Path.endswith(Suffix)) {
|
||||
error("-thinlto-object-suffix-replace=" + Suffix + ";" + Repl +
|
||||
" was given, but " + Path + " does not ends with the suffix");
|
||||
" was given, but " + Path + " does not end with the suffix");
|
||||
return "";
|
||||
}
|
||||
return (Path.drop_back(Suffix.size()) + Repl).str();
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
; RUN: not ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only \
|
||||
; RUN: --plugin-opt=thinlto-object-suffix-replace=".abc;.o" -shared %t1.thinlink.bc \
|
||||
; RUN: -o %t3 2>&1 | FileCheck %s --check-prefix=ERR2
|
||||
; ERR2: error: -thinlto-object-suffix-replace=.abc;.o was given, but {{.*}} does not ends with the suffix
|
||||
; ERR2: error: -thinlto-object-suffix-replace=.abc;.o was given, but {{.*}} does not end with the suffix
|
||||
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
|
Loading…
Reference in New Issue