1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
//----------------------------------------------------------
// CommandLine.h - tiny very specific command line parser
//----------------------------------------------------------
#ifndef _CommandLine
#define _CommandLine
class CommandLine
{
public:
class Options
{
public:
Options() :
nameOfJit(nullptr),
nameOfJit2(nullptr),
nameOfInputMethodContextFile(nullptr),
writeLogFile(nullptr),
reproName(nullptr),
breakOnError(false),
breakOnAssert(false),
applyDiff(false),
parallel(false),
useCoreDisTools(false),
skipCleanup(false),
workerCount(-1),
indexCount(-1),
indexes(nullptr),
hash(nullptr),
methodStatsTypes(nullptr),
mclFilename(nullptr),
diffMCLFilename(nullptr),
targetArchitecture(nullptr),
compileList(nullptr),
offset(-1),
increment(-1)
{
}
char* nameOfJit;
char* nameOfJit2;
char* nameOfInputMethodContextFile;
char* writeLogFile;
char* reproName;
bool breakOnError;
bool breakOnAssert;
bool applyDiff;
bool parallel; // User specified to use /parallel mode.
bool useCoreDisTools; // Use CoreDisTools library instead of Msvcdis
bool skipCleanup; // In /parallel mode, do we skip cleanup of temporary files? Used for debugging /parallel.
int workerCount; // Number of workers to use for /parallel mode. -1 (or 1) means don't use parallel mode.
int indexCount; // If indexCount is -1 and hash points to nullptr it means compile all.
int* indexes;
char* hash;
char* methodStatsTypes;
char* mclFilename;
char* diffMCLFilename;
char* targetArchitecture;
char* compileList;
int offset;
int increment;
};
static bool Parse(int argc, char* argv[], /* OUT */ Options* o);
private:
static void DumpHelp(const char* program);
};
#endif
|