aboutsummaryrefslogtreecommitdiffstats
path: root/projects
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-10 23:35:46 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-10 23:35:46 +0000
commit6220aa8453e812f8834464e2ca8a114b6384ca89 (patch)
tree3b88c7bc17f1c05d84b1cef7a8462d08aaca62c1 /projects
parent9099e3ed2717d065883737496fc596ab00e58af6 (diff)
downloadexternal_llvm-6220aa8453e812f8834464e2ca8a114b6384ca89.zip
external_llvm-6220aa8453e812f8834464e2ca8a114b6384ca89.tar.gz
external_llvm-6220aa8453e812f8834464e2ca8a114b6384ca89.tar.bz2
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
Diffstat (limited to 'projects')
-rw-r--r--projects/Stacker/tools/stkrc/stkrc.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/projects/Stacker/tools/stkrc/stkrc.cpp b/projects/Stacker/tools/stkrc/stkrc.cpp
index 58ef8d7..280d6b0 100644
--- a/projects/Stacker/tools/stkrc/stkrc.cpp
+++ b/projects/Stacker/tools/stkrc/stkrc.cpp
@@ -39,12 +39,12 @@ OutputFilename("o", cl::desc("Override output filename"),
static cl::opt<bool>
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>
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
static cl::opt<bool>
@@ -57,8 +57,7 @@ FlexDebug("x", cl::desc("Turn on Flex Debugging"), cl::Hidden);
#endif
static cl::opt<bool>
-EchoSource("e", cl::desc("Print Stacker Source as parsed"),
- cl::value_desc("echo"));
+EchoSource("e", cl::desc("Print Stacker Source as parsed"), cl::Hidden);
int main(int argc, char **argv)
{
@@ -83,7 +82,7 @@ int main(int argc, char **argv)
// Parse the file now...
std::auto_ptr<Module> M (
- compiler.compile(InputFilename,EchoSource, 1024) );
+ compiler.compile(InputFilename,EchoSource, StackSize) );
if (M.get() == 0) {
std::cerr << argv[0] << ": assembly didn't read correctly.\n";
return 1;