summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/debugify.ll
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-05-17 18:19:58 +0000
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-05-17 18:19:58 +0000
commitd6c6678766e421b9d11ce8cdb9669a6aeedf6129 (patch)
tree44584797c48327c8159b1884475ed9cb8e58c5cd /llvm/test/DebugInfo/debugify.ll
parent1dc0a8fb18289dae8536c39d579e7e0064290833 (diff)
downloadbcm5719-llvm-d6c6678766e421b9d11ce8cdb9669a6aeedf6129.tar.gz
bcm5719-llvm-d6c6678766e421b9d11ce8cdb9669a6aeedf6129.zip
[Debugify] Print the output to stderr
Currently debugify prints it's output to stdout, with this patch all the output generated goes to stderr. This change lets us use debugify without taking away the ability to pipe the output to other llvm tools. llvm-svn: 332642
Diffstat (limited to 'llvm/test/DebugInfo/debugify.ll')
-rw-r--r--llvm/test/DebugInfo/debugify.ll10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/test/DebugInfo/debugify.ll b/llvm/test/DebugInfo/debugify.ll
index c31105bae12..fd265378a4e 100644
--- a/llvm/test/DebugInfo/debugify.ll
+++ b/llvm/test/DebugInfo/debugify.ll
@@ -13,13 +13,17 @@
; RUN: opt -enable-debugify -passes=verify -S -o - < %s | \
; RUN: FileCheck %s -implicit-check-not="CheckModuleDebugify: FAIL"
-; RUN: opt -debugify -strip -check-debugify -S -o - < %s | \
+; RUN: opt -debugify -strip -check-debugify -S -o - < %s 2>&1 | \
; RUN: FileCheck %s -check-prefix=CHECK-FAIL
-; RUN: opt -enable-debugify -strip -S -o - < %s | \
+; RUN: opt -enable-debugify -strip -S -o - < %s 2>&1 | \
; RUN: FileCheck %s -check-prefix=CHECK-FAIL
-; RUN: opt -enable-debugify -S -o - < %s | FileCheck %s -check-prefix=PASS
+; RUN: opt -enable-debugify -S -o - < %s 2>&1 | FileCheck %s -check-prefix=PASS
+
+; Verify that debugify can be safely used with piping
+; RUN: opt -enable-debugify -O1 < %s | opt -O2 -o /dev/null
+; RUN: opt -debugify -mem2reg -check-debugify < %s | opt -O2 -o /dev/null
; CHECK-LABEL: define void @foo
define void @foo() {
OpenPOWER on IntegriCloud