Adjust option names for C++ backend

llvm-svn: 50190
This commit is contained in:
Anton Korobeynikov 2008-04-23 22:37:03 +00:00
parent 78695035c4
commit 9dcc3e97a4
1 changed files with 11 additions and 11 deletions

View File

@ -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!"));