[llvm-commits] CVS: llvm/projects/Stacker/tools/stkrc/stkrc.cpp

LLVM llvm at cs.uiuc.edu
Sat Jul 10 18:37:02 PDT 2004


Changes in directory llvm/projects/Stacker/tools/stkrc:

stkrc.cpp updated: 1.3 -> 1.4

---
Log message:

Group the hidden command line arguments.
Make the -s option actually work and default to the right value.


---
Diffs of the changes:  (+6 -7)

Index: llvm/projects/Stacker/tools/stkrc/stkrc.cpp
diff -u llvm/projects/Stacker/tools/stkrc/stkrc.cpp:1.3 llvm/projects/Stacker/tools/stkrc/stkrc.cpp:1.4
--- llvm/projects/Stacker/tools/stkrc/stkrc.cpp:1.3	Sun Jul  4 07:22:14 2004
+++ llvm/projects/Stacker/tools/stkrc/stkrc.cpp	Sat Jul 10 18:35:46 2004
@@ -39,12 +39,12 @@
 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 @@
 #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 @@
     // 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;





More information about the llvm-commits mailing list