mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-18 03:59:15 +00:00
autoupgrade files that use callfoo as call foo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b28a6dce6d
commit
4ce0df6108
@ -617,12 +617,20 @@ int LLLexer::LexIdentifier() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally, if this is "cc1234", return this as just "cc".
|
// If this is "cc1234", return this as just "cc".
|
||||||
if (TokStart[0] == 'c' && TokStart[1] == 'c') {
|
if (TokStart[0] == 'c' && TokStart[1] == 'c') {
|
||||||
CurPtr = TokStart+2;
|
CurPtr = TokStart+2;
|
||||||
return CC_TOK;
|
return CC_TOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If this starts with "call", return it as CALL. This is to support old
|
||||||
|
// broken .ll files. FIXME: remove this with LLVM 3.0.
|
||||||
|
if (CurPtr-TokStart > 4 && !memcmp(TokStart, "call", 4)) {
|
||||||
|
CurPtr = TokStart+4;
|
||||||
|
llvmAsmlval.OtherOpVal = Instruction::Call;
|
||||||
|
return CALL;
|
||||||
|
}
|
||||||
|
|
||||||
// Finally, if this isn't known, return just a single character.
|
// Finally, if this isn't known, return just a single character.
|
||||||
CurPtr = TokStart+1;
|
CurPtr = TokStart+1;
|
||||||
return TokStart[0];
|
return TokStart[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user