From: David L. Jones Date: Thu, 15 Aug 2019 23:24:14 +0000 (+0000) Subject: [NewPM][PassInstrumentation] Fix test added in r369024. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79bbc06b14d4cdb0b8b7af57fb5746ef8ce6ca72;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369066 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/ThinLTO/X86/printer.ll b/test/ThinLTO/X86/printer.ll index fbdeea6be60..79f4f5645cd 100644 --- a/test/ThinLTO/X86/printer.ll +++ b/test/ThinLTO/X86/printer.ll @@ -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 ***