instead of migrating it to the MC instruction encoder, just
authorChris Lattner <sabre@nondot.org>
Thu, 22 Jul 2010 21:05:13 +0000 (21:05 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 22 Jul 2010 21:05:13 +0000 (21:05 +0000)
commit456fdaf0cea4bd195eacc9796fedb71b62290cfe
treea01c493970efe0ab5e2c00e5a8a03649d7aaad74
parent169c932759a5e8f1db586775f2bba1e65c08cadd
instead of migrating it to the MC instruction encoder, just
rip out the implementation of X86InstrInfo::GetInstSizeInBytes.
The code being ripped out just implemented a copy and hacked up
version of the (old) instruction encoder, and is buggy and
terrible in other ways.  Since "GetInstSizeInBytes" is really
only there to support the JIT's "NeedsExactSize" hook (which
noone is using), just rip out the code.  I will rip out the
NeedsExactSize hook next.

This resolves rdar://7617809 - switch X86InstrInfo::GetInstSizeInBytes to use X86MCCodeEmitter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109149 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86CodeEmitter.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
unittests/ExecutionEngine/JIT/JITTest.cpp