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:
parent
fff37cd2de
commit
1020912cfb
5
test/tools/llvm-nm/X86/response-file.test
Normal file
5
test/tools/llvm-nm/X86/response-file.test
Normal 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
|
4
test/tools/llvm-nm/libtool-response-file.test
Normal file
4
test/tools/llvm-nm/libtool-response-file.test
Normal 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
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user