diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-06-04 18:16:26 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-06-04 18:16:26 +0000 |
commit | 9fa89334f1045b56e8ae409004e119d47ef17ec7 (patch) | |
tree | a1f64b21c54cb84b7612b59a4fb56dc1073da11a /lib/AsmParser/LLLexer.h | |
parent | e0b87032f5ac8134b7585bdc4a0f2c77158b962d (diff) | |
download | external_llvm-9fa89334f1045b56e8ae409004e119d47ef17ec7.zip external_llvm-9fa89334f1045b56e8ae409004e119d47ef17ec7.tar.gz external_llvm-9fa89334f1045b56e8ae409004e119d47ef17ec7.tar.bz2 |
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
Diffstat (limited to 'lib/AsmParser/LLLexer.h')
-rw-r--r-- | lib/AsmParser/LLLexer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AsmParser/LLLexer.h b/lib/AsmParser/LLLexer.h index 09ae801..4fe705e 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(); |