From 70145f2d5eb44add31a4f2f92379540a288e97ec Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 26 May 2006 08:04:31 +0000 Subject: [PATCH] Remove a couple of bogus casts. llvm-svn: 28493 --- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp | 2 +- llvm/lib/Target/X86/X86IntelAsmPrinter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp index 9ca6e65e9db2..4571e7cd8f0e 100755 --- a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -131,7 +131,7 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo, case MachineOperand::MO_Immediate: if (!Modifier || strcmp(Modifier, "debug") != 0) O << '$'; - O << (int)MO.getImmedValue(); + O << MO.getImmedValue(); return; case MachineOperand::MO_MachineBasicBlock: printBasicBlockLabel(MO.getMachineBasicBlock()); diff --git a/llvm/lib/Target/X86/X86IntelAsmPrinter.cpp b/llvm/lib/Target/X86/X86IntelAsmPrinter.cpp index 1a5ac8352f0c..d8e97420a696 100755 --- a/llvm/lib/Target/X86/X86IntelAsmPrinter.cpp +++ b/llvm/lib/Target/X86/X86IntelAsmPrinter.cpp @@ -98,7 +98,7 @@ void X86IntelAsmPrinter::printOp(const MachineOperand &MO, return; case MachineOperand::MO_Immediate: - O << (int)MO.getImmedValue(); + O << MO.getImmedValue(); return; case MachineOperand::MO_MachineBasicBlock: printBasicBlockLabel(MO.getMachineBasicBlock());