mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-03 15:36:21 +00:00
Group the hidden command line arguments.
Make the -s option actually work and default to the right value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14735 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9099e3ed27
commit
6220aa8453
@ -39,12 +39,12 @@ OutputFilename("o", cl::desc("Override output filename"),
|
|||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
Force("f", cl::desc("Overwrite output files"));
|
Force("f", cl::desc("Overwrite output files"));
|
||||||
|
|
||||||
static cl::opt<bool>
|
|
||||||
DumpAsm("d", cl::desc("Print LLVM Assembly as parsed"), cl::Hidden);
|
|
||||||
|
|
||||||
static cl::opt<uint32_t>
|
static cl::opt<uint32_t>
|
||||||
StackSize("s", cl::desc("Specify program maximum stack size"),
|
StackSize("s", cl::desc("Specify program maximum stack size"),
|
||||||
cl::value_desc("stacksize"));
|
cl::init(1024), cl::value_desc("stack size"));
|
||||||
|
|
||||||
|
static cl::opt<bool>
|
||||||
|
DumpAsm("d", cl::desc("Print LLVM Assembly as parsed"), cl::Hidden);
|
||||||
|
|
||||||
#ifdef PARSE_DEBUG
|
#ifdef PARSE_DEBUG
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
@ -57,8 +57,7 @@ FlexDebug("x", cl::desc("Turn on Flex Debugging"), cl::Hidden);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
EchoSource("e", cl::desc("Print Stacker Source as parsed"),
|
EchoSource("e", cl::desc("Print Stacker Source as parsed"), cl::Hidden);
|
||||||
cl::value_desc("echo"));
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
@ -83,7 +82,7 @@ int main(int argc, char **argv)
|
|||||||
// Parse the file now...
|
// Parse the file now...
|
||||||
|
|
||||||
std::auto_ptr<Module> M (
|
std::auto_ptr<Module> M (
|
||||||
compiler.compile(InputFilename,EchoSource, 1024) );
|
compiler.compile(InputFilename,EchoSource, StackSize) );
|
||||||
if (M.get() == 0) {
|
if (M.get() == 0) {
|
||||||
std::cerr << argv[0] << ": assembly didn't read correctly.\n";
|
std::cerr << argv[0] << ": assembly didn't read correctly.\n";
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user