diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-16 00:42:35 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-16 00:42:35 +0000 |
commit | f969868271f25df126047d0844f45b5e3b844b6d (patch) | |
tree | 33895d19c296f368411e93161cd79c8d1d75e1fb /tools/llvm-mc | |
parent | ccfaa4be4378b1d4c71a08664f9c5ddcdcfab8ef (diff) | |
download | external_llvm-f969868271f25df126047d0844f45b5e3b844b6d.zip external_llvm-f969868271f25df126047d0844f45b5e3b844b6d.tar.gz external_llvm-f969868271f25df126047d0844f45b5e3b844b6d.tar.bz2 |
llvm-mc: Teach -as-lex to print more token kinds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc')
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index aef0a3d..424cc08 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -205,19 +205,24 @@ static int AsLexInput(const char *ProgName) { case AsmToken::Identifier: Out->os() << "identifier: " << Lexer.getTok().getString() << '\n'; break; - case AsmToken::String: - Out->os() << "string: " << Lexer.getTok().getString() << '\n'; - break; case AsmToken::Integer: Out->os() << "int: " << Lexer.getTok().getString() << '\n'; break; + case AsmToken::Register: + Out->os() << "register: " << Lexer.getTok().getRegVal() << '\n'; + break; + case AsmToken::String: + Out->os() << "string: " << Lexer.getTok().getString() << '\n'; + break; case AsmToken::Amp: Out->os() << "Amp\n"; break; case AsmToken::AmpAmp: Out->os() << "AmpAmp\n"; break; + case AsmToken::At: Out->os() << "At\n"; break; case AsmToken::Caret: Out->os() << "Caret\n"; break; case AsmToken::Colon: Out->os() << "Colon\n"; break; case AsmToken::Comma: Out->os() << "Comma\n"; break; case AsmToken::Dollar: Out->os() << "Dollar\n"; break; + case AsmToken::Dot: Out->os() << "Dot\n"; break; case AsmToken::EndOfStatement: Out->os() << "EndOfStatement\n"; break; case AsmToken::Eof: Out->os() << "Eof\n"; break; case AsmToken::Equal: Out->os() << "Equal\n"; break; @@ -227,6 +232,9 @@ static int AsLexInput(const char *ProgName) { case AsmToken::Greater: Out->os() << "Greater\n"; break; case AsmToken::GreaterEqual: Out->os() << "GreaterEqual\n"; break; case AsmToken::GreaterGreater: Out->os() << "GreaterGreater\n"; break; + case AsmToken::Hash: Out->os() << "Hash\n"; break; + case AsmToken::LBrac: Out->os() << "LBrac\n"; break; + case AsmToken::LCurly: Out->os() << "LCurly\n"; break; case AsmToken::LParen: Out->os() << "LParen\n"; break; case AsmToken::Less: Out->os() << "Less\n"; break; case AsmToken::LessEqual: Out->os() << "LessEqual\n"; break; @@ -237,6 +245,8 @@ static int AsLexInput(const char *ProgName) { case AsmToken::Pipe: Out->os() << "Pipe\n"; break; case AsmToken::PipePipe: Out->os() << "PipePipe\n"; break; case AsmToken::Plus: Out->os() << "Plus\n"; break; + case AsmToken::RBrac: Out->os() << "RBrac\n"; break; + case AsmToken::RCurly: Out->os() << "RCurly\n"; break; case AsmToken::RParen: Out->os() << "RParen\n"; break; case AsmToken::Slash: Out->os() << "Slash\n"; break; case AsmToken::Star: Out->os() << "Star\n"; break; |