From 42f006c8f56bfff54788762517bf8b65c848bd50 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 5 Dec 2004 05:17:34 +0000 Subject: Make a const method const git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18524 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CommandLine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/Support/CommandLine.h') diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 3b4eda587a..d3023e5cb3 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -915,7 +915,7 @@ class list : public Option, public list_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]; } -- cgit v1.2.3