From: Douglas Katzman Date: Thu, 25 Jun 2015 18:48:26 +0000 (+0000) Subject: Add Arg::getValues method with const 'this' and const result X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=40db269af5f4684f3319a18a3f8da0a0e195a04d;p=oota-llvm.git 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 --- 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)