From 40db269af5f4684f3319a18a3f8da0a0e195a04d Mon Sep 17 00:00:00 2001 From: Douglas Katzman Date: Thu, 25 Jun 2015 18:48:26 +0000 Subject: [PATCH] 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 --- include/llvm/Option/Arg.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/llvm/Option/Arg.h b/include/llvm/Option/Arg.h index 5f6941a53d0..e1b72b6267c 100644 --- a/include/llvm/Option/Arg.h +++ b/include/llvm/Option/Arg.h @@ -93,9 +93,8 @@ public: return Values[N]; } - SmallVectorImpl &getValues() { - return Values; - } + SmallVectorImpl &getValues() { return Values; } + const SmallVectorImpl &getValues() const { return Values; } bool containsValue(StringRef Value) const { for (unsigned i = 0, e = getNumValues(); i != e; ++i) -- 2.34.1