mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Add const to a const method. NFC
llvm-svn: 300520
This commit is contained in:
parent
8ba440ea9a
commit
fec4b3628a
@ -57,7 +57,7 @@ namespace llvm {
|
||||
|
||||
/// isValid - returns the error encountered during regex compilation, or
|
||||
/// matching, if any.
|
||||
bool isValid(std::string &Error);
|
||||
bool isValid(std::string &Error) const;
|
||||
|
||||
/// getNumMatches - In a valid regex, return the number of parenthesized
|
||||
/// matches it contains. The number filled in by match will include this
|
||||
|
@ -48,7 +48,7 @@ Regex::~Regex() {
|
||||
}
|
||||
}
|
||||
|
||||
bool Regex::isValid(std::string &Error) {
|
||||
bool Regex::isValid(std::string &Error) const {
|
||||
if (!error)
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user