[llvm-commits] CVS: llvm/lib/Support/CommandLine.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 8 14:57:38 PDT 2005



Changes in directory llvm/lib/Support:

CommandLine.cpp updated: 1.62 -> 1.63
---
Log message:

Allow tools with "consume after" options (like lli) to take more positional
opts than they take directly.  Thanks to John C for pointing this problem
out to me!


---
Diffs of the changes:  (+1 -4)

 CommandLine.cpp |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)


Index: llvm/lib/Support/CommandLine.cpp
diff -u llvm/lib/Support/CommandLine.cpp:1.62 llvm/lib/Support/CommandLine.cpp:1.63
--- llvm/lib/Support/CommandLine.cpp:1.62	Mon Aug  8 12:25:38 2005
+++ llvm/lib/Support/CommandLine.cpp	Mon Aug  8 16:57:27 2005
@@ -335,11 +335,8 @@
                                    " does not require a value!");
       }
       UnboundedFound |= EatsUnboundedNumberOfValues(Opt);
-      
-      if (Opt->getNumOccurrencesFlag() == cl::ZeroOrMore
-          || Opt->getNumOccurrencesFlag() == cl::OneOrMore)
-          HasUnlimitedPositionals = true;
     }
+    HasUnlimitedPositionals = UnboundedFound || ConsumeAfterOpt;
   }
 
   // PositionalVals - A vector of "positional" arguments we accumulate into






More information about the llvm-commits mailing list