diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-05 05:17:34 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-05 05:17:34 +0000 |
commit | 107f57673230bb3ab51b7f8dc34fc98342196cff (patch) | |
tree | c010a5875501e24413810b323f4a7028076aaa98 | |
parent | d78077dd13784139b2946047f2cac221b6b1f5d1 (diff) | |
download | llvm-107f57673230bb3ab51b7f8dc34fc98342196cff.tar.gz |
Make a const method const
llvm-svn: 18524
-rw-r--r-- | llvm/include/llvm/Support/CommandLine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index 3b4eda587aa2..d3023e5cb360 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/include/llvm/Support/CommandLine.h @@ -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]; } |