summaryrefslogtreecommitdiff
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
commit107f57673230bb3ab51b7f8dc34fc98342196cff (patch)
treec010a5875501e24413810b323f4a7028076aaa98
parentd78077dd13784139b2946047f2cac221b6b1f5d1 (diff)
downloadllvm-107f57673230bb3ab51b7f8dc34fc98342196cff.tar.gz
Make a const method const
llvm-svn: 18524
-rw-r--r--llvm/include/llvm/Support/CommandLine.h2
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];
}