Add Arg::getValues method with const 'this' and const result

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240673 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Douglas Katzman
2015-06-25 18:48:26 +00:00
parent a59b0561c8
commit 40db269af5

View File

@@ -93,9 +93,8 @@ public:
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)