Make a const method const
authorReid Spencer <rspencer@reidspencer.com>
Sun, 5 Dec 2004 05:17:34 +0000 (05:17 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 5 Dec 2004 05:17:34 +0000 (05:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18524 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h

index 3b4eda587aa2aed432bc280354c216cad9fd2d68..d3023e5cb360dba29eac038d128b064846cf4bdc 100644 (file)
@@ -915,7 +915,7 @@ class list : public Option, public list_storage<DataType, Storage> {
 public:
   ParserClass &getParser() { return Parser; }
 
-  unsigned getPosition(unsigned optnum) { 
+  unsigned getPosition(unsigned optnum) const 
     assert(optnum < this->size() && "Invalid option index");
     return Positions[optnum]; 
   }