[llvm] r369066 - [NewPM][PassInstrumentation] Fix test added in r369024.

David L. Jones via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 16:24:14 PDT 2019


Author: dlj
Date: Thu Aug 15 16:24:14 2019
New Revision: 369066

URL: http://llvm.org/viewvc/llvm-project?rev=369066&view=rev
Log:
[NewPM][PassInstrumentation] Fix test added in r369024.

llvm-lto2 doesn't treat "-" as stdout, so the test added in r369024 creates a
file named "-.0". This patch makes the test look more like other tests that use
llvm-lto2.

Modified:
    llvm/trunk/test/ThinLTO/X86/printer.ll

Modified: llvm/trunk/test/ThinLTO/X86/printer.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ThinLTO/X86/printer.ll?rev=369066&r1=369065&r2=369066&view=diff
==============================================================================
--- llvm/trunk/test/ThinLTO/X86/printer.ll (original)
+++ llvm/trunk/test/ThinLTO/X86/printer.ll Thu Aug 15 16:24:14 2019
@@ -1,6 +1,6 @@
 ; RUN: llvm-as %s -o %t.bc
-; RUN: llvm-lto2 run -r=%t.bc,foo,pxl -use-new-pm --print-before-all %t.bc -o - 2>&1 | FileCheck %s --check-prefix=CHECK-BEFORE
-; RUN: llvm-lto2 run -r=%t.bc,foo,pxl -use-new-pm --print-after-all %t.bc -o - 2>&1 | FileCheck %s --check-prefix=CHECK-AFTER
+; RUN: llvm-lto2 run -r=%t.bc,foo,pxl -use-new-pm --print-before-all %t.bc -o %t2 2>&1 | FileCheck %s --check-prefix=CHECK-BEFORE
+; RUN: llvm-lto2 run -r=%t.bc,foo,pxl -use-new-pm --print-after-all %t.bc -o %t3 2>&1 | FileCheck %s --check-prefix=CHECK-AFTER
 ; CHECK-BEFORE: *** IR Dump Before GlobalDCEPass ***
 ; CHECK-AFTER: *** IR Dump After GlobalDCEPass ***
 




More information about the llvm-commits mailing list