[llvm] r179129 - Cleanup. No functional change intended.

Chad Rosier mcrosier at apple.com
Tue Apr 9 13:58:49 PDT 2013


Author: mcrosier
Date: Tue Apr  9 15:58:48 2013
New Revision: 179129

URL: http://llvm.org/viewvc/llvm-project?rev=179129&view=rev
Log:
Cleanup. No functional change intended.

Modified:
    llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp

Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=179129&r1=179128&r2=179129&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Tue Apr  9 15:58:48 2013
@@ -1394,13 +1394,13 @@ bool X86AsmParser::ParseIntelDotOperator
 /// 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;
 





More information about the llvm-commits mailing list