[llvm-commits] CVS: llvm/include/llvm/Support/CommandLine.h

Reid Spencer reid at x10sys.com
Sat Dec 4 21:17:45 PST 2004



Changes in directory llvm/include/llvm/Support:

CommandLine.h updated: 1.39 -> 1.40
---
Log message:

Make a const method const

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

Index: llvm/include/llvm/Support/CommandLine.h
diff -u llvm/include/llvm/Support/CommandLine.h:1.39 llvm/include/llvm/Support/CommandLine.h:1.40
--- llvm/include/llvm/Support/CommandLine.h:1.39	Tue Nov 16 00:11:52 2004
+++ llvm/include/llvm/Support/CommandLine.h	Sat Dec  4 23:17:34 2004
@@ -915,7 +915,7 @@
 public:
   ParserClass &getParser() { return Parser; }
 
-  unsigned getPosition(unsigned optnum) { 
+  unsigned getPosition(unsigned optnum) const { 
     assert(optnum < this->size() && "Invalid option index");
     return Positions[optnum]; 
   }






More information about the llvm-commits mailing list