]> granicus.if.org Git - llvm/commitdiff
[NewPM][PassInstrumentation] Fix test added in r369024.
authorDavid L. Jones <dlj@google.com>
Thu, 15 Aug 2019 23:24:14 +0000 (23:24 +0000)
committerDavid L. Jones <dlj@google.com>
Thu, 15 Aug 2019 23:24:14 +0000 (23:24 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369066 91177308-0d34-0410-b5e6-96231b3b80d8

test/ThinLTO/X86/printer.ll

index fbdeea6be60f46b48f044d2e2e70dece8aba45d2..79f4f5645cd60ff968cf070c2f2c9947f50702b6 100644 (file)
@@ -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 ***