summaryrefslogtreecommitdiff
path: root/include/llvm/Option/Arg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Option/Arg.h')
-rw-r--r--include/llvm/Option/Arg.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Option/Arg.h b/include/llvm/Option/Arg.h
index 5f6941a53d0c..e1b72b6267cf 100644
--- a/include/llvm/Option/Arg.h
+++ b/include/llvm/Option/Arg.h
@@ -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)