llvm.org GIT mirror llvm / df10870
Cleanup. No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179129 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 7 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
13931393 /// Parse the 'offset' operator. This operator is used to specify the
13941394 /// location rather then the content of a variable.
13951395 X86Operand *X86AsmParser::ParseIntelOffsetOfOperator() {
1396 AsmToken Tok = *&Parser.getTok();
1396 const AsmToken &Tok = Parser.getTok();
13971397 SMLoc OffsetOfLoc = Tok.getLoc();
13981398 Parser.Lex(); // Eat offset.
13991399 assert (Tok.is(AsmToken::Identifier) && "Expected an identifier");
14001400
1401 SMLoc Start = Parser.getTok().getLoc(), End;
14021401 const MCExpr *Val;
1402 SMLoc Start = Tok.getLoc(), End;
14031403 if (getParser().parseExpression(Val, End))
14041404 return ErrorOperand(Start, "Unable to parse expression!");
14051405
14291429 /// TYPE operator returns the size of a C or C++ type or variable. If the
14301430 /// variable is an array, TYPE returns the size of a single element.
14311431 X86Operand *X86AsmParser::ParseIntelOperator(unsigned OpKind) {
1432 AsmToken Tok = *&Parser.getTok();
1432 const AsmToken &Tok = Parser.getTok();
14331433 SMLoc TypeLoc = Tok.getLoc();
14341434 Parser.Lex(); // Eat operator.
1435 assert (Parser.getTok().is(AsmToken::Identifier) && "Expected an identifier");
1435 assert (Tok.is(AsmToken::Identifier) && "Expected an identifier");
14361436
14371437 const MCExpr *Val;
1438 SMLoc Start = Parser.getTok().getLoc(), End;
1438 SMLoc Start = Tok.getLoc(), End;
14391439 if (getParser().parseExpression(Val, End))
14401440 return 0;
14411441