summaryrefslogtreecommitdiff
path: root/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-05 05:17:34 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-05 05:17:34 +0000
commit42f006c8f56bfff54788762517bf8b65c848bd50 (patch)
treeef2f7c99641d57108d1f5728e1963496ca268347 /include/llvm/Support/CommandLine.h
parent7980ea4cfa8d83927e26942256a2c9c4eec9c463 (diff)
downloadllvm-42f006c8f56bfff54788762517bf8b65c848bd50.tar.gz
llvm-42f006c8f56bfff54788762517bf8b65c848bd50.tar.bz2
llvm-42f006c8f56bfff54788762517bf8b65c848bd50.tar.xz
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.h2
1 files changed, 1 insertions, 1 deletions
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<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];
}