diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-05-18 17:23:38 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-05-18 17:23:38 +0000 |
| commit | e99014d4713898f98b34d20298bf5994aa8aa20d (patch) | |
| tree | 8e5c2f23c574db4e0cf4ee0f42a5256b12672313 /llvm | |
| parent | 1257cd8fd8f22d636b74b624586032b695f27c59 (diff) | |
| download | bcm5719-llvm-e99014d4713898f98b34d20298bf5994aa8aa20d.tar.gz bcm5719-llvm-e99014d4713898f98b34d20298bf5994aa8aa20d.zip | |
clean up; NFCI
llvm-svn: 269962
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp index 2679125762b..855e108a2bc 100644 --- a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp +++ b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp @@ -166,15 +166,14 @@ void X86ATTInstPrinter::printOperand(const MCInst *MI, unsigned OpNo, printRegName(O, Op.getReg()); } else if (Op.isImm()) { // Print X86 immediates as signed values. - O << markup("<imm:") << '$' << formatImm((int64_t)Op.getImm()) - << markup(">"); + int64_t Imm = Op.getImm(); + O << markup("<imm:") << '$' << formatImm(Imm) << markup(">"); // If there are no instruction-specific comments, add a comment clarifying // the hex value of the immediate operand when it isn't in the range // [-256,255]. - if (CommentStream && !HasCustomInstComment && - (Op.getImm() > 255 || Op.getImm() < -256)) - *CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Op.getImm()); + if (CommentStream && !HasCustomInstComment && (Imm > 255 || Imm < -256)) + *CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Imm); } else { assert(Op.isExpr() && "unknown operand kind in printOperand"); |

