From: Chris Lattner Date: Wed, 11 Aug 2004 02:26:39 +0000 (+0000) Subject: Remove dead method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=916f96ace0840510fe50400b0f83beebf6c99752;p=oota-llvm.git Remove dead method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15647 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index 18fe460f112..98e3bb4912a 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -472,19 +472,6 @@ static unsigned sizeOfImm(const TargetInstrDescriptor &Desc) { } } -static unsigned sizeOfPtr(const TargetInstrDescriptor &Desc) { - switch (Desc.TSFlags & X86II::MemMask) { - case X86II::Mem8: return 1; - case X86II::Mem16: return 2; - case X86II::Mem32: return 4; - case X86II::Mem64: return 8; - case X86II::Mem80: return 10; - case X86II::Mem128: return 16; - default: assert(0 && "Memory size not set!"); - return 0; - } -} - void Emitter::emitInstruction(const MachineInstr &MI) { NumEmitted++; // Keep track of the # of mi's emitted