From: Petr Hosek Date: Fri, 5 Oct 2018 21:10:03 +0000 (+0000) Subject: [llvm-nm] Write "no symbol" output to stderr X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ffc8666af9645f5a14bb13f6a99526242e29c03;p=clang [llvm-nm] Write "no symbol" output to stderr 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 --- diff --git a/test/CodeGen/thinlto_backend.ll b/test/CodeGen/thinlto_backend.ll index be7a6feeb9..2dd919d5f7 100644 --- a/test/CodeGen/thinlto_backend.ll +++ b/test/CodeGen/thinlto_backend.ll @@ -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].