mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-21 02:36:39 +00:00
Use skip() instead of peek() and expect().
llvm-svn: 275692
This commit is contained in:
parent
79acd2a96b
commit
f953a8ac17
@ -108,7 +108,6 @@ void VersionScriptParser::parseLocal() {
|
||||
}
|
||||
|
||||
void VersionScriptParser::parseExtern(std::vector<SymbolVersion> *Globals) {
|
||||
expect("extern");
|
||||
expect("C++");
|
||||
expect("{");
|
||||
|
||||
@ -131,7 +130,7 @@ void VersionScriptParser::parseGlobal(StringRef VerStr) {
|
||||
Globals = &Config->VersionDefinitions.back().Globals;
|
||||
|
||||
for (;;) {
|
||||
if (peek() == "extern")
|
||||
if (skip("extern"))
|
||||
parseExtern(Globals);
|
||||
|
||||
StringRef Cur = peek();
|
||||
|
Loading…
x
Reference in New Issue
Block a user