Make a const method const

llvm-svn: 18524
This commit is contained in:
Reid Spencer 2004-12-05 05:17:34 +00:00
parent d78077dd13
commit 107f576732
1 changed files with 1 additions and 1 deletions

View 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];
}