diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-06 21:31:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-06 21:31:47 +0000 |
commit | 9dedbcc3d5d30bfe4eab24483f2a2db5a541ea7a (patch) | |
tree | f008d382bcfae21f1001fb47bdc42c0b2e0a85ff /lib/Target/X86/MachineCodeEmitter.cpp | |
parent | eab49345cb5cab7ad2ab268afa2416fac10efd33 (diff) |
Don't have a cow with new pseudo instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/MachineCodeEmitter.cpp')
-rw-r--r-- | lib/Target/X86/MachineCodeEmitter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/MachineCodeEmitter.cpp b/lib/Target/X86/MachineCodeEmitter.cpp index 5721d4bafe..308ad404ab 100644 --- a/lib/Target/X86/MachineCodeEmitter.cpp +++ b/lib/Target/X86/MachineCodeEmitter.cpp @@ -259,7 +259,8 @@ void Emitter::emitInstruction(MachineInstr &MI) { 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 @@ void Emitter::emitInstruction(MachineInstr &MI) { 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); |