mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Don't pass StringRef by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
#include <string>
|
||||
using namespace llvm;
|
||||
|
||||
Regex::Regex(const StringRef ®ex, unsigned Flags) {
|
||||
Regex::Regex(StringRef regex, unsigned Flags) {
|
||||
unsigned flags = 0;
|
||||
preg = new llvm_regex();
|
||||
preg->re_endp = regex.end();
|
||||
@ -52,7 +52,7 @@ unsigned Regex::getNumMatches() const {
|
||||
return preg->re_nsub;
|
||||
}
|
||||
|
||||
bool Regex::match(const StringRef &String, SmallVectorImpl<StringRef> *Matches){
|
||||
bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){
|
||||
unsigned nmatch = Matches ? preg->re_nsub+1 : 0;
|
||||
|
||||
// pmatch needs to have at least one element.
|
||||
|
Reference in New Issue
Block a user