[lld] 28b196e - [llvm] Write temporary test files into %t

Dmitri Gribenko via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 03:56:03 PDT 2024


Author: Dmitri Gribenko
Date: 2024-03-28T11:55:46+01:00
New Revision: 28b196e7fc4919a062ed20177d113cd0ae9b1f75

URL: https://github.com/llvm/llvm-project/commit/28b196e7fc4919a062ed20177d113cd0ae9b1f75
DIFF: https://github.com/llvm/llvm-project/commit/28b196e7fc4919a062ed20177d113cd0ae9b1f75.diff

LOG: [llvm] Write temporary test files into %t

... instead of the source tree

Added: 
    

Modified: 
    lld/test/ELF/lto/libcall-archive.ll

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/lto/libcall-archive.ll b/lld/test/ELF/lto/libcall-archive.ll
index 84ddc1f5558724..0f3d9c37d72992 100644
--- a/lld/test/ELF/lto/libcall-archive.ll
+++ b/lld/test/ELF/lto/libcall-archive.ll
@@ -4,8 +4,8 @@
 ; RUN: llvm-as -o %t2.o %S/Inputs/libcall-archive.ll
 ; RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux -o %t3.o %S/Inputs/libcall-archive.s
 ; RUN: llvm-ar rcs %t.a %t2.o %t3.o
-; RUN: ld.lld --why-extract=why.txt -o %t %t.o %t.a
-; RUN: FileCheck %s --input-file=why.txt --check-prefix=CHECK-WHY
+; RUN: ld.lld --why-extract=%t.why.txt -o %t %t.o %t.a
+; RUN: FileCheck %s --input-file=%t.why.txt --check-prefix=CHECK-WHY
 ; RUN: llvm-nm %t | FileCheck %s
 ; RUN: ld.lld -o %t2 %t.o --start-lib %t2.o %t3.o --end-lib
 ; RUN: llvm-nm %t2 | FileCheck %s


        


More information about the llvm-commits mailing list