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 | 42f006c8f56bfff54788762517bf8b65c848bd50 (patch) | |
tree | ef2f7c99641d57108d1f5728e1963496ca268347 /include/llvm/Support/CommandLine.h | |
parent | 7980ea4cfa8d83927e26942256a2c9c4eec9c463 (diff) | |
download | external_llvm-42f006c8f56bfff54788762517bf8b65c848bd50.zip external_llvm-42f006c8f56bfff54788762517bf8b65c848bd50.tar.gz external_llvm-42f006c8f56bfff54788762517bf8b65c848bd50.tar.bz2 |
Make a const method const
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 3b4eda5..d3023e5 100644 --- a/include/llvm/Support/CommandLine.h +++ b/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]; } |