projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c244dcb
)
Add Arg::getValues method with const 'this' and const result
author
Douglas Katzman
<dougk@google.com>
Thu, 25 Jun 2015 18:48:26 +0000
(18:48 +0000)
committer
Douglas Katzman
<dougk@google.com>
Thu, 25 Jun 2015 18:48:26 +0000
(18:48 +0000)
llvm-svn: 240673
llvm/include/llvm/Option/Arg.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Option/Arg.h
b/llvm/include/llvm/Option/Arg.h
index
5f6941a
..
e1b72b6
100644
(file)
--- a/
llvm/include/llvm/Option/Arg.h
+++ b/
llvm/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)