From df1087061c58c1734efd363715f221ac7d426cbb Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 9 Apr 2013 20:58:48 +0000 Subject: [PATCH] Cleanup. No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179129 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/AsmParser/X86AsmParser.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index 2c5edbc7e26..60a02702eb7 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -1394,13 +1394,13 @@ bool X86AsmParser::ParseIntelDotOperator(const MCExpr *Disp, /// Parse the 'offset' operator. This operator is used to specify the /// location rather then the content of a variable. X86Operand *X86AsmParser::ParseIntelOffsetOfOperator() { - AsmToken Tok = *&Parser.getTok(); + const AsmToken &Tok = Parser.getTok(); SMLoc OffsetOfLoc = Tok.getLoc(); Parser.Lex(); // Eat offset. assert (Tok.is(AsmToken::Identifier) && "Expected an identifier"); - SMLoc Start = Parser.getTok().getLoc(), End; const MCExpr *Val; + SMLoc Start = Tok.getLoc(), End; if (getParser().parseExpression(Val, End)) return ErrorOperand(Start, "Unable to parse expression!"); @@ -1430,13 +1430,13 @@ enum IntelOperatorKind { /// TYPE operator returns the size of a C or C++ type or variable. If the /// variable is an array, TYPE returns the size of a single element. X86Operand *X86AsmParser::ParseIntelOperator(unsigned OpKind) { - AsmToken Tok = *&Parser.getTok(); + const AsmToken &Tok = Parser.getTok(); SMLoc TypeLoc = Tok.getLoc(); Parser.Lex(); // Eat operator. - assert (Parser.getTok().is(AsmToken::Identifier) && "Expected an identifier"); + assert (Tok.is(AsmToken::Identifier) && "Expected an identifier"); const MCExpr *Val; - SMLoc Start = Parser.getTok().getLoc(), End; + SMLoc Start = Tok.getLoc(), End; if (getParser().parseExpression(Val, End)) return 0; -- 2.34.1