[llvm-commits] CVS: llvm/lib/Target/X86/MachineCodeEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue May 6 16:33:01 PDT 2003
Changes in directory llvm/lib/Target/X86:
MachineCodeEmitter.cpp updated: 1.19 -> 1.20
---
Log message:
Don't have a cow with new pseudo instructions
---
Diffs of the changes:
Index: llvm/lib/Target/X86/MachineCodeEmitter.cpp
diff -u llvm/lib/Target/X86/MachineCodeEmitter.cpp:1.19 llvm/lib/Target/X86/MachineCodeEmitter.cpp:1.20
--- llvm/lib/Target/X86/MachineCodeEmitter.cpp:1.19 Tue Jan 14 15:59:16 2003
+++ llvm/lib/Target/X86/MachineCodeEmitter.cpp Tue May 6 16:31:47 2003
@@ -259,7 +259,8 @@
switch (Desc.TSFlags & X86II::FormMask) {
default: assert(0 && "Unknown FormMask value in X86 MachineCodeEmitter!");
case X86II::Pseudo:
- std::cerr << "X86 Machine Code Emitter: No 'form', not emitting: " << MI;
+ if (Opcode != X86::IMPLICIT_DEF && Opcode != X86::IMPLICIT_USE)
+ std::cerr << "X86 Machine Code Emitter: No 'form', not emitting: " << MI;
break;
case X86II::RawFrm:
@@ -307,7 +308,7 @@
emitRegModRMByte(MI.getOperand(0).getReg(), getX86RegNum(SrcOp.getReg()));
if (MI.getNumOperands() == 4)
emitConstant(MI.getOperand(3).getImmedValue(), sizeOfPtr(Desc));
- break;
+ break;
}
case X86II::MRMDestMem:
MCE.emitByte(BaseOpcode);
More information about the llvm-commits
mailing list