File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 14
14
#include " llvm/Option/Arg.h"
15
15
#include " llvm/Option/ArgList.h"
16
16
#include " llvm/Option/Option.h"
17
+ #include " llvm/Support/CommandLine.h"
17
18
#include " llvm/Support/Path.h"
18
19
#include " llvm/TextAPI/MachO/TextAPIReader.h"
19
20
@@ -68,6 +69,9 @@ opt::InputArgList MachOOptTable::parse(ArrayRef<const char *> argv) {
68
69
unsigned missingCount;
69
70
SmallVector<const char *, 256 > vec (argv.data (), argv.data () + argv.size ());
70
71
72
+ // Expand response files (arguments in the form of @<filename>)
73
+ // and then parse the argument again.
74
+ cl::ExpandResponseFiles (saver, cl::TokenizeGNUCommandLine, vec);
71
75
opt::InputArgList args = ParseArgs (vec, missingIndex, missingCount);
72
76
73
77
if (missingCount)
Original file line number Diff line number Diff line change
1
+ # RUN: echo --help > %t.rsp
2
+
3
+ # RUN: %lld @%t.rsp | FileCheck %s
4
+ CHECK: OVERVIEW: LLVM Linker
You can’t perform that action at this time.
0 commit comments