equal
deleted
inserted
replaced
|
1 # 24314638 LLVM CommandLine subsystem is busted |
|
2 # 3.9.X for upstream. |
|
3 --- tools/llvm-as/llvm-as.cpp 2015-10-04 10:33:43.000000000 -0400 |
|
4 +++ tools/llvm-as/llvm-as.cpp 2016-05-08 23:19:20.579431896 -0400 |
|
5 @@ -28,15 +28,21 @@ |
|
6 #include "llvm/Support/SourceMgr.h" |
|
7 #include "llvm/Support/SystemUtils.h" |
|
8 #include "llvm/Support/ToolOutputFile.h" |
|
9 -#include <memory> |
|
10 using namespace llvm; |
|
11 |
|
12 +#include <memory> |
|
13 +#include <string> |
|
14 + |
|
15 static cl::opt<std::string> |
|
16 -InputFilename(cl::Positional, cl::desc("<input .llvm file>"), cl::init("-")); |
|
17 +InputFilename(cl::Positional, cl::desc("<input file>"), |
|
18 + cl::NotHidden, |
|
19 + cl::Optional, |
|
20 + cl::init(std::string("-")), |
|
21 + cl::ValuePositionalNoArgs); |
|
22 |
|
23 static cl::opt<std::string> |
|
24 OutputFilename("o", cl::desc("Override output filename"), |
|
25 - cl::value_desc("filename")); |
|
26 + cl::value_desc("<output filename>")); |
|
27 |
|
28 static cl::opt<bool> |
|
29 Force("f", cl::desc("Enable binary output on terminals")); |