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-Tag: llvmorg-3.7.0-rc1~1519 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb283241e8ec8122de8a8fca2b0e5a2ddb0a28be;p=platform%2Fupstream%2Fllvm.git Add Arg::getValues method with const 'this' and const result llvm-svn: 240673 --- diff --git a/llvm/include/llvm/Option/Arg.h b/llvm/include/llvm/Option/Arg.h index 5f6941a5..e1b72b6 100644 --- a/llvm/include/llvm/Option/Arg.h +++ b/llvm/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)