[lld] r343887 - [llvm-nm] Write "no symbol" output to stderr

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 5 14:10:03 PDT 2018


Author: phosek
Date: Fri Oct  5 14:10:03 2018
New Revision: 343887

URL: http://llvm.org/viewvc/llvm-project?rev=343887&view=rev
Log:
[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

Modified:
    lld/trunk/test/ELF/lto/thinlto-obj-path.ll

Modified: lld/trunk/test/ELF/lto/thinlto-obj-path.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto-obj-path.ll?rev=343887&r1=343886&r2=343887&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto-obj-path.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto-obj-path.ll Fri Oct  5 14:10:03 2018
@@ -7,7 +7,7 @@
 ; RUN: rm -f %t4.o
 ; RUN: ld.lld --plugin-opt=thinlto-index-only --plugin-opt=obj-path=%t4.o -shared %t1.o %t2.o -o %t3
 ; RUN: llvm-readobj -h %t4.o | FileCheck %s
-; 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
 
 ; CHECK: Format: ELF64-x86-64




More information about the llvm-commits mailing list