diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-17 00:37:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-17 00:37:20 +0000 |
commit | 36b01cb8856545214945bfbe8c1ffe6741f895a5 (patch) | |
tree | 1556864ad4498f13cd7ae08c957e50cc8ca9d98c | |
parent | e609a513f3c072bba28412c681465332a2822d9a (diff) |
Make the operand and format specifier match, and print all
64 bits, fixing a variety of problems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96421 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp index 1a35a4941c..734a545555 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp @@ -73,7 +73,7 @@ void X86ATTInstPrinter::printOperand(const MCInst *MI, unsigned OpNo) { O << '$' << Op.getImm(); if (CommentStream && (Op.getImm() > 255 || Op.getImm() < -256)) - *CommentStream << format("imm = 0x%X\n", Op.getImm()); + *CommentStream << format("imm = 0x%llX\n", (long long)Op.getImm()); } else { assert(Op.isExpr() && "unknown operand kind in printOperand"); |