From 9fa89334f1045b56e8ae409004e119d47ef17ec7 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sat, 4 Jun 2011 18:16:26 +0000 Subject: Refactor parsing of variable names (ie., %foo and @foo) since they have the same rules. Also refactor "read string until quote" into its own function. No functionality change! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132645 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/LLLexer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/AsmParser/LLLexer.h') diff --git a/lib/AsmParser/LLLexer.h b/lib/AsmParser/LLLexer.h index 09ae8017f4..4fe705e1a5 100644 --- a/lib/AsmParser/LLLexer.h +++ b/lib/AsmParser/LLLexer.h @@ -71,6 +71,9 @@ namespace llvm { int getNextChar(); void SkipLineComment(); + lltok::Kind ReadString(lltok::Kind kind); + bool ReadVarName(); + lltok::Kind LexIdentifier(); lltok::Kind LexDigitOrNegative(); lltok::Kind LexPositive(); -- cgit v1.2.3