mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 19:35:54 +00:00
Use function's argument instead of the global flag.
For now it happens the argument is always the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4f67afc3d6
commit
53bb26f61c
@ -670,11 +670,11 @@ static bool IsPartOfWord(char c) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Check::CheckType FindCheckType(StringRef &Buffer, StringRef Prefix) {
|
static Check::CheckType FindCheckType(StringRef &Buffer, StringRef Prefix) {
|
||||||
char NextChar = Buffer[CheckPrefix.size()];
|
char NextChar = Buffer[Prefix.size()];
|
||||||
|
|
||||||
// Verify that the : is present after the prefix.
|
// Verify that the : is present after the prefix.
|
||||||
if (NextChar == ':') {
|
if (NextChar == ':') {
|
||||||
Buffer = Buffer.substr(CheckPrefix.size() + 1);
|
Buffer = Buffer.substr(Prefix.size() + 1);
|
||||||
return Check::CheckPlain;
|
return Check::CheckPlain;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -683,7 +683,7 @@ static Check::CheckType FindCheckType(StringRef &Buffer, StringRef Prefix) {
|
|||||||
return Check::CheckNone;
|
return Check::CheckNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
StringRef Rest = Buffer.drop_front(CheckPrefix.size() + 1);
|
StringRef Rest = Buffer.drop_front(Prefix.size() + 1);
|
||||||
if (Rest.startswith("NEXT:")) {
|
if (Rest.startswith("NEXT:")) {
|
||||||
Buffer = Rest.drop_front(sizeof("NEXT:") - 1);
|
Buffer = Rest.drop_front(sizeof("NEXT:") - 1);
|
||||||
return Check::CheckNext;
|
return Check::CheckNext;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user