llvm.org GIT mirror llvm / fb0f0de
Added AsmToken enum constants to MCAsmLexer.h for '[', ']', '{', and '}' in preparation of supporting other targets. Then changed the lexer to parse these as tokens. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81050 91177308-0d34-0410-b5e6-96231b3b80d8 Kevin Enderby 11 years ago
2 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3636 Colon,
3737 Plus, Minus, Tilde,
3838 Slash, // '/'
39 LParen, RParen,
39 LParen, RParen, LBrac, RBrac, LCurly, RCurly,
4040 Star, Comma, Dollar, Equal, EqualEqual,
4141
4242 Pipe, PipePipe, Caret,
276276 case '~': return AsmToken(AsmToken::Tilde, StringRef(TokStart, 1));
277277 case '(': return AsmToken(AsmToken::LParen, StringRef(TokStart, 1));
278278 case ')': return AsmToken(AsmToken::RParen, StringRef(TokStart, 1));
279 case '[': return AsmToken(AsmToken::LBrac, StringRef(TokStart, 1));
280 case ']': return AsmToken(AsmToken::RBrac, StringRef(TokStart, 1));
281 case '{': return AsmToken(AsmToken::LCurly, StringRef(TokStart, 1));
282 case '}': return AsmToken(AsmToken::RCurly, StringRef(TokStart, 1));
279283 case '*': return AsmToken(AsmToken::Star, StringRef(TokStart, 1));
280284 case ',': return AsmToken(AsmToken::Comma, StringRef(TokStart, 1));
281285 case '$': return AsmToken(AsmToken::Dollar, StringRef(TokStart, 1));