Skip to content

Commit

Permalink
Add Arg::getValues method with const 'this' and const result
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240673 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
snuglas committed Jun 25, 2015
1 parent a59b056 commit 40db269
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/llvm/Option/Arg.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ class Arg {
return Values[N];
}

SmallVectorImpl<const char*> &getValues() {
return Values;
}
SmallVectorImpl<const char *> &getValues() { return Values; }
const SmallVectorImpl<const char *> &getValues() const { return Values; }

bool containsValue(StringRef Value) const {
for (unsigned i = 0, e = getNumValues(); i != e; ++i)
Expand Down

0 comments on commit 40db269

Please sign in to comment.