mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
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:
@@ -93,9 +93,8 @@ public:
|
|||||||
return Values[N];
|
return Values[N];
|
||||||
}
|
}
|
||||||
|
|
||||||
SmallVectorImpl<const char*> &getValues() {
|
SmallVectorImpl<const char *> &getValues() { return Values; }
|
||||||
return Values;
|
const SmallVectorImpl<const char *> &getValues() const { return Values; }
|
||||||
}
|
|
||||||
|
|
||||||
bool containsValue(StringRef Value) const {
|
bool containsValue(StringRef Value) const {
|
||||||
for (unsigned i = 0, e = getNumValues(); i != e; ++i)
|
for (unsigned i = 0, e = getNumValues(); i != e; ++i)
|
||||||
|
|||||||
Reference in New Issue
Block a user