1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

[llvm-nm] Include the text "@FILE" in the output of --help

libtool requires this text to be present, in order to conclude that
the tool supports response files. Also add an explicit test of using
response files with llvm-nm.

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

llvm-svn: 344222
This commit is contained in:
Martin Storsjo 2018-10-11 06:53:38 +00:00
parent fff37cd2de
commit 1020912cfb
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# RUN: echo "-P %p/Inputs/hello.obj.elf-x86_64" > %t-response
# RUN: llvm-nm @%t-response | FileCheck %s
CHECK: main T 0 0
CHECK: puts U 0 0

View File

@ -0,0 +1,4 @@
RUN: llvm-nm --help | FileCheck %s
Check that the output of llvm-nm --help contains the literal text @FILE; this
indicates to libtool that llvm-nm does support response files.
CHECK: @FILE

View File

@ -183,6 +183,8 @@ cl::opt<bool> DyldInfoOnly("dyldinfo-only",
cl::opt<bool> NoLLVMBitcode("no-llvm-bc",
cl::desc("Disable LLVM bitcode reader"));
cl::extrahelp HelpResponse("\nPass @FILE as argument to read options from FILE.\n");
bool PrintAddress = true;
bool MultipleFiles = false;