mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 09:45:00 +00:00
Fixing incorrectly capitalised regexps.
Patch by Sam Allen! llvm-svn: 312709
This commit is contained in:
parent
d1413aa905
commit
75b020745a
@ -1638,7 +1638,7 @@ struct LessRecordRegister {
|
||||
if (LHSNumParts != RHSNumParts)
|
||||
return LHSNumParts < RHSNumParts;
|
||||
|
||||
// We expect the registers to be of the form [_a-zA-z]+([0-9]*[_a-zA-Z]*)*.
|
||||
// We expect the registers to be of the form [_a-zA-Z]+([0-9]*[_a-zA-Z]*)*.
|
||||
for (size_t I = 0, E = LHSNumParts; I < E; I+=2) {
|
||||
std::pair<bool, StringRef> LHSPart = LHSParts.getPart(I);
|
||||
std::pair<bool, StringRef> RHSPart = RHSParts.getPart(I);
|
||||
|
@ -88,7 +88,7 @@ private:
|
||||
// Check if tokenizer can start reading an identifier at current position.
|
||||
// The original tool did non specify the rules to determine what is a correct
|
||||
// identifier. We assume they should follow the C convention:
|
||||
// [a-zA-z_][a-zA-Z0-9_]*.
|
||||
// [a-zA-Z_][a-zA-Z0-9_]*.
|
||||
bool canStartIdentifier() const;
|
||||
// Check if tokenizer can continue reading an identifier.
|
||||
bool canContinueIdentifier() const;
|
||||
|
Loading…
Reference in New Issue
Block a user