equal
deleted
inserted
replaced
|
1 # 24314638 LLVM CommandLine subsystem is busted |
|
2 # 3.9.X for upstream. |
|
3 --- tools/llc/llc.cpp 2015-12-07 14:21:39.000000000 -0500 |
|
4 +++ tools/llc/llc.cpp 2016-05-08 23:19:20.578431871 -0400 |
|
5 @@ -54,13 +54,14 @@ |
|
6 // and back-end code generation options are specified with the target machine. |
|
7 // |
|
8 static cl::opt<std::string> |
|
9 -InputFilename(cl::Positional, cl::desc("<input bitcode>"), cl::init("-")); |
|
10 +InputFilename(cl::Positional, cl::desc("<input bitcode>"), |
|
11 + cl::init(std::string("-"))); |
|
12 |
|
13 static cl::opt<std::string> |
|
14 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); |
|
15 |
|
16 static cl::opt<unsigned> |
|
17 -TimeCompilations("time-compilations", cl::Hidden, cl::init(1u), |
|
18 +TimeCompilations("time-compilations", cl::Hidden, cl::init(1U), |
|
19 cl::value_desc("N"), |
|
20 cl::desc("Repeat compilation N times for timing")); |
|
21 |
|
22 @@ -74,8 +75,9 @@ |
|
23 cl::desc("Optimization level. [-O0, -O1, -O2, or -O3] " |
|
24 "(default = '-O2')"), |
|
25 cl::Prefix, |
|
26 - cl::ZeroOrMore, |
|
27 - cl::init(' ')); |
|
28 + cl::Optional, |
|
29 + cl::ValueRequired, |
|
30 + cl::init('2')); |
|
31 |
|
32 static cl::opt<std::string> |
|
33 TargetTriple("mtriple", cl::desc("Override target triple for module")); |