mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-12 22:30:12 +00:00
Adjust option names for C++ backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5027652b8a
commit
8d3e74ed49
@ -39,7 +39,7 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
static cl::opt<std::string>
|
static cl::opt<std::string>
|
||||||
FuncName("funcname", cl::desc("Specify the name of the generated function"),
|
FuncName("cppfname", cl::desc("Specify the name of the generated function"),
|
||||||
cl::value_desc("function name"));
|
cl::value_desc("function name"));
|
||||||
|
|
||||||
enum WhatToGenerate {
|
enum WhatToGenerate {
|
||||||
@ -53,23 +53,23 @@ enum WhatToGenerate {
|
|||||||
GenType
|
GenType
|
||||||
};
|
};
|
||||||
|
|
||||||
static cl::opt<WhatToGenerate> GenerationType(cl::Optional,
|
static cl::opt<WhatToGenerate> GenerationType("cppgen", cl::Optional,
|
||||||
cl::desc("Choose what kind of output to generate"),
|
cl::desc("Choose what kind of output to generate"),
|
||||||
cl::init(GenProgram),
|
cl::init(GenProgram),
|
||||||
cl::values(
|
cl::values(
|
||||||
clEnumValN(GenProgram, "gen-program", "Generate a complete program"),
|
clEnumValN(GenProgram, "program", "Generate a complete program"),
|
||||||
clEnumValN(GenModule, "gen-module", "Generate a module definition"),
|
clEnumValN(GenModule, "module", "Generate a module definition"),
|
||||||
clEnumValN(GenContents, "gen-contents", "Generate contents of a module"),
|
clEnumValN(GenContents, "contents", "Generate contents of a module"),
|
||||||
clEnumValN(GenFunction, "gen-function", "Generate a function definition"),
|
clEnumValN(GenFunction, "function", "Generate a function definition"),
|
||||||
clEnumValN(GenFunctions,"gen-functions", "Generate all function definitions"),
|
clEnumValN(GenFunctions,"functions", "Generate all function definitions"),
|
||||||
clEnumValN(GenInline, "gen-inline", "Generate an inline function"),
|
clEnumValN(GenInline, "inline", "Generate an inline function"),
|
||||||
clEnumValN(GenVariable, "gen-variable", "Generate a variable definition"),
|
clEnumValN(GenVariable, "variable", "Generate a variable definition"),
|
||||||
clEnumValN(GenType, "gen-type", "Generate a type definition"),
|
clEnumValN(GenType, "type", "Generate a type definition"),
|
||||||
clEnumValEnd
|
clEnumValEnd
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
static cl::opt<std::string> NameToGenerate("for", cl::Optional,
|
static cl::opt<std::string> NameToGenerate("cppfor", cl::Optional,
|
||||||
cl::desc("Specify the name of the thing to generate"),
|
cl::desc("Specify the name of the thing to generate"),
|
||||||
cl::init("!bad!"));
|
cl::init("!bad!"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user