[llvm] r179724 - [ms-inline asm] These should be int64_t, not uint64_t.
Chad Rosier
mcrosier at apple.com
Wed Apr 17 14:14:38 PDT 2013
Author: mcrosier
Date: Wed Apr 17 16:14:38 2013
New Revision: 179724
URL: http://llvm.org/viewvc/llvm-project?rev=179724&view=rev
Log:
[ms-inline asm] These should be int64_t, not uint64_t.
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=179724&r1=179723&r2=179724&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Wed Apr 17 16:14:38 2013
@@ -485,11 +485,11 @@ private:
X86Operand *ParseIntelOperand();
X86Operand *ParseIntelOffsetOfOperator();
X86Operand *ParseIntelOperator(unsigned OpKind);
- X86Operand *ParseIntelMemOperand(unsigned SegReg, uint64_t ImmDisp,
+ X86Operand *ParseIntelMemOperand(unsigned SegReg, int64_t ImmDisp,
SMLoc StartLoc);
X86Operand *ParseIntelExpression(IntelExprStateMachine &SM, SMLoc &End);
X86Operand *ParseIntelBracExpression(unsigned SegReg, SMLoc Start,
- uint64_t ImmDisp, unsigned Size);
+ int64_t ImmDisp, unsigned Size);
X86Operand *ParseIntelVarWithQualifier(const MCExpr *&Disp,
StringRef &Identifier);
X86Operand *ParseMemOperand(unsigned SegReg, SMLoc StartLoc);
@@ -1293,7 +1293,7 @@ X86AsmParser::ParseIntelExpression(Intel
}
X86Operand *X86AsmParser::ParseIntelBracExpression(unsigned SegReg, SMLoc Start,
- uint64_t ImmDisp,
+ int64_t ImmDisp,
unsigned Size) {
const AsmToken &Tok = Parser.getTok();
SMLoc BracLoc = Tok.getLoc(), End = Tok.getEndLoc();
@@ -1397,7 +1397,7 @@ X86Operand *X86AsmParser::ParseIntelVarW
/// ParseIntelMemOperand - Parse intel style memory operand.
X86Operand *X86AsmParser::ParseIntelMemOperand(unsigned SegReg,
- uint64_t ImmDisp,
+ int64_t ImmDisp,
SMLoc Start) {
const AsmToken &Tok = Parser.getTok();
SMLoc End;
@@ -1415,7 +1415,7 @@ X86Operand *X86AsmParser::ParseIntelMemO
if (isParsingInlineAsm())
InstInfo->AsmRewrites->push_back(AsmRewrite(AOK_ImmPrefix,
Tok.getLoc()));
- uint64_t ImmDisp = Tok.getIntVal();
+ int64_t ImmDisp = Tok.getIntVal();
Parser.Lex(); // Eat the integer.
if (getLexer().isNot(AsmToken::LBrac))
return ErrorOperand(Start, "Expected '[' token!");
@@ -1455,7 +1455,7 @@ bool X86AsmParser::ParseIntelDotOperator
const MCExpr **NewDisp,
SmallString<64> &Err) {
const AsmToken &Tok = Parser.getTok();
- uint64_t OrigDispVal, DotDispVal;
+ int64_t OrigDispVal, DotDispVal;
// FIXME: Handle non-constant expressions.
if (const MCConstantExpr *OrigDisp = dyn_cast<MCConstantExpr>(Disp)) {
More information about the llvm-commits
mailing list