[lld] r275692 - Use skip() instead of peek() and expect().
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 16 11:45:24 PDT 2016
Author: ruiu
Date: Sat Jul 16 13:45:23 2016
New Revision: 275692
URL: http://llvm.org/viewvc/llvm-project?rev=275692&view=rev
Log:
Use skip() instead of peek() and expect().
Modified:
lld/trunk/ELF/SymbolListFile.cpp
Modified: lld/trunk/ELF/SymbolListFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolListFile.cpp?rev=275692&r1=275691&r2=275692&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolListFile.cpp (original)
+++ lld/trunk/ELF/SymbolListFile.cpp Sat Jul 16 13:45:23 2016
@@ -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(St
Globals = &Config->VersionDefinitions.back().Globals;
for (;;) {
- if (peek() == "extern")
+ if (skip("extern"))
parseExtern(Globals);
StringRef Cur = peek();
More information about the llvm-commits
mailing list