[lld] r362988 - [LLD] Change FileCheck output file pattern to a temporary file

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 14:39:11 PDT 2019


Author: timshen
Date: Mon Jun 10 14:39:11 2019
New Revision: 362988

URL: http://llvm.org/viewvc/llvm-project?rev=362988&view=rev
Log:
[LLD] Change FileCheck output file pattern to a temporary file

The previous name "%lib" doesn't trigger any actual replacement. It
creates the file "./tools/lld/test/ELF/%lib.o" in the test directory.

Modified:
    lld/trunk/test/ELF/aarch64-ifunc-bti.s

Modified: lld/trunk/test/ELF/aarch64-ifunc-bti.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-ifunc-bti.s?rev=362988&r1=362987&r2=362988&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-ifunc-bti.s (original)
+++ lld/trunk/test/ELF/aarch64-ifunc-bti.s Mon Jun 10 14:39:11 2019
@@ -1,9 +1,9 @@
 # REQUIRES: aarch64
 # RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux-gnu %s -o %t.o
-# RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux-gnu %p/Inputs/aarch64-addrifunc.s -o %lib.o
+# RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux-gnu %p/Inputs/aarch64-addrifunc.s -o %t1.o
 
-# RUN: ld.lld --shared %lib.o -o %lib.so
-# RUN: ld.lld --pie %lib.so %t.o -o %t
+# RUN: ld.lld --shared %t1.o -o %t1.so
+# RUN: ld.lld --pie %t1.so %t.o -o %t
 # RUN: llvm-objdump -d -mattr=+bti -triple=aarch64-linux-gnu %t | FileCheck %s
 
 # When the address of an ifunc is taken using a non-got reference which clang




More information about the llvm-commits mailing list