[lld] r331419 - Updated ThinLTO test to not include forward or backward slash for testing
Rumeet Dhindsa via llvm-commits
llvm-commits at lists.llvm.org
Wed May 2 17:28:51 PDT 2018
Author: rdhindsa
Date: Wed May 2 17:28:51 2018
New Revision: 331419
URL: http://llvm.org/viewvc/llvm-project?rev=331419&view=rev
Log:
Updated ThinLTO test to not include forward or backward slash for testing
Differential Revision: https://reviews.llvm.org/D46372
Modified:
lld/trunk/ELF/LTO.cpp
lld/trunk/test/ELF/lto/thinlto.ll
Modified: lld/trunk/ELF/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LTO.cpp?rev=331419&r1=331418&r2=331419&view=diff
==============================================================================
--- lld/trunk/ELF/LTO.cpp (original)
+++ lld/trunk/ELF/LTO.cpp Wed May 2 17:28:51 2018
@@ -196,7 +196,9 @@ void BitcodeCompiler::add(BitcodeFile &F
std::tie(OldPrefix, NewPrefix) = Config->ThinLTOPrefixReplace.split(';');
// Create the empty files which, if indexed, will be overwritten later.
- writeEmptyDistributedBuildOutputs(Obj.getName(), OldPrefix, NewPrefix, false);
+ if (Config->ThinLTOIndexOnly)
+ writeEmptyDistributedBuildOutputs(Obj.getName(), OldPrefix, NewPrefix,
+ false);
unsigned SymNum = 0;
std::vector<Symbol *> Syms = F.getSymbols();
Modified: lld/trunk/test/ELF/lto/thinlto.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto.ll?rev=331419&r1=331418&r2=331419&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto.ll Wed May 2 17:28:51 2018
@@ -58,8 +58,8 @@
; The backend index for this module contains summaries from itself and
; Inputs/thinlto.ll, as it imports from the latter.
; BACKEND1: <MODULE_STRTAB_BLOCK
-; BACKEND1-NEXT: <ENTRY {{.*}} record string = '{{.*}}/thinlto.ll.tmp{{.*}}.o'
-; BACKEND1-NEXT: <ENTRY {{.*}} record string = '{{.*}}/thinlto.ll.tmp{{.*}}.o'
+; BACKEND1-NEXT: <ENTRY {{.*}} record string = '{{.*}}thinlto.ll.tmp{{.*}}.o'
+; BACKEND1-NEXT: <ENTRY {{.*}} record string = '{{.*}}thinlto.ll.tmp{{.*}}.o'
; BACKEND1-NEXT: </MODULE_STRTAB_BLOCK
; BACKEND1: <GLOBALVAL_SUMMARY_BLOCK
; BACKEND1: <VERSION
@@ -73,7 +73,7 @@
; The backend index for Input/thinlto.ll contains summaries from itself only,
; as it does not import anything.
; BACKEND2: <MODULE_STRTAB_BLOCK
-; BACKEND2-NEXT: <ENTRY {{.*}} record string = '{{.*}}/thinlto.ll.tmp2.o'
+; BACKEND2-NEXT: <ENTRY {{.*}} record string = '{{.*}}thinlto.ll.tmp2.o'
; BACKEND2-NEXT: </MODULE_STRTAB_BLOCK
; BACKEND2-NEXT: <GLOBALVAL_SUMMARY_BLOCK
; BACKEND2-NEXT: <VERSION
More information about the llvm-commits
mailing list