[llvm-commits] [llvm] r148322 - /llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp

Devang Patel dpatel at apple.com
Tue Jan 17 11:09:22 PST 2012


Author: dpatel
Date: Tue Jan 17 13:09:22 2012
New Revision: 148322

URL: http://llvm.org/viewvc/llvm-project?rev=148322&view=rev
Log:
Untabify.

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=148322&r1=148321&r2=148322&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Tue Jan 17 13:09:22 2012
@@ -604,7 +604,7 @@
       const MCExpr *Disp = MCConstantExpr::Create(0, getParser().getContext());
       if (getParser().ParseExpression(Disp, End)) return 0;
       if (getLexer().isNot(AsmToken::RBrac))
-	return ErrorOperand(Start, "Expected ']' token!");
+        return ErrorOperand(Start, "Expected ']' token!");
       Parser.Lex();
       return X86Operand::CreateMem(Disp, Start, End, Size);
     }
@@ -613,7 +613,7 @@
       const MCExpr *Disp = MCConstantExpr::Create(0, getParser().getContext());
       if (getParser().ParseExpression(Disp, End)) return 0;
       if (getLexer().isNot(AsmToken::RBrac))
-	return ErrorOperand(Start, "Expected ']' token!");
+        return ErrorOperand(Start, "Expected ']' token!");
       Parser.Lex();
       return X86Operand::CreateMem(Disp, Start, End, Size);
   }
@@ -626,17 +626,17 @@
       int64_t Val = Parser.getTok().getIntVal();
       Parser.Lex();
       if (getLexer().is(AsmToken::Star)) {
-	Parser.Lex();
-	SMLoc IdxRegLoc = Parser.getTok().getLoc();
-	IndexReg = getIntelRegisterOperand(Parser.getTok().getString());
-	if (!IndexReg) return ErrorOperand(IdxRegLoc, "Expected register");
-	Parser.Lex(); // Eat register
-	Scale = Val;
+        Parser.Lex();
+        SMLoc IdxRegLoc = Parser.getTok().getLoc();
+        IndexReg = getIntelRegisterOperand(Parser.getTok().getString());
+        if (!IndexReg) return ErrorOperand(IdxRegLoc, "Expected register");
+        Parser.Lex(); // Eat register
+        Scale = Val;
       } else if (getLexer().is(AsmToken::RBrac)) {
-	const MCExpr *ValExpr = MCConstantExpr::Create(Val, getContext());
-	Disp = isPlus ? ValExpr : MCUnaryExpr::CreateMinus(ValExpr, getContext());
+        const MCExpr *ValExpr = MCConstantExpr::Create(Val, getContext());
+        Disp = isPlus ? ValExpr : MCUnaryExpr::CreateMinus(ValExpr, getContext());
       } else
-	return ErrorOperand(PlusLoc, "unexpected token after +");
+        return ErrorOperand(PlusLoc, "unexpected token after +");
     }
   }
 
@@ -649,7 +649,7 @@
   Parser.Lex();
   End = Parser.getTok().getLoc();
   return X86Operand::CreateMem(SegReg, Disp, BaseReg, IndexReg, Scale,
-			       Start, End, Size);
+                               Start, End, Size);
 }
 
 /// ParseIntelMemOperand - Parse intel style memory operand.





More information about the llvm-commits mailing list