[lld] r290213 - Use ArrayRef instead of `const std::vector`.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 15:17:00 PST 2016
Author: ruiu
Date: Tue Dec 20 17:17:00 2016
New Revision: 290213
URL: http://llvm.org/viewvc/llvm-project?rev=290213&view=rev
Log:
Use ArrayRef instead of `const std::vector`.
Modified:
lld/trunk/ELF/Strings.cpp
lld/trunk/ELF/Strings.h
Modified: lld/trunk/ELF/Strings.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Strings.cpp?rev=290213&r1=290212&r2=290213&view=diff
==============================================================================
--- lld/trunk/ELF/Strings.cpp (original)
+++ lld/trunk/ELF/Strings.cpp Tue Dec 20 17:17:00 2016
@@ -21,7 +21,7 @@ using namespace llvm;
using namespace lld;
using namespace lld::elf;
-StringMatcher::StringMatcher(const std::vector<StringRef> &Pat) {
+StringMatcher::StringMatcher(ArrayRef<StringRef> Pat) {
for (StringRef S : Pat) {
Expected<GlobPattern> Pat = GlobPattern::create(S);
if (!Pat)
Modified: lld/trunk/ELF/Strings.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Strings.h?rev=290213&r1=290212&r2=290213&view=diff
==============================================================================
--- lld/trunk/ELF/Strings.h (original)
+++ lld/trunk/ELF/Strings.h Tue Dec 20 17:17:00 2016
@@ -61,7 +61,7 @@ private:
class StringMatcher {
public:
StringMatcher() = default;
- explicit StringMatcher(const std::vector<StringRef> &Pat);
+ explicit StringMatcher(ArrayRef<StringRef> Pat);
bool match(StringRef S) const;
More information about the llvm-commits
mailing list