]> granicus.if.org Git - clang/commitdiff
[llvm-nm] Write "no symbol" output to stderr
authorPetr Hosek <phosek@chromium.org>
Fri, 5 Oct 2018 21:10:03 +0000 (21:10 +0000)
committerPetr Hosek <phosek@chromium.org>
Fri, 5 Oct 2018 21:10:03 +0000 (21:10 +0000)
This matches the output of binutils' nm and ensures that any scripts
or tools that use nm and expect empty output in case there no symbols
don't break.

Differential Revision: https://reviews.llvm.org/D52943

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

test/CodeGen/thinlto_backend.ll

index be7a6feeb98d74fb5a9801709520a8e3da3905c5..2dd919d5f7de4fcf0af663a72f6464dba1d4a9e1 100644 (file)
@@ -25,7 +25,7 @@
 ; be empty file.
 ; RUN: opt -o %t5.o %s
 ; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t4.o -x ir %t5.o -c -fthinlto-index=%t.thinlto.bc
-; RUN: llvm-nm %t4.o | FileCheck %s -check-prefix=NO-SYMBOLS
+; RUN: llvm-nm %t4.o 2>&1 | FileCheck %s -check-prefix=NO-SYMBOLS
 ; NO-SYMBOLS: no symbols
 
 ; Ensure f2 was imported. Check for all 3 flavors of -save-temps[=cwd|obj].