Add and commonize encoder support for all immediates.
authorChris Lattner <sabre@nondot.org>
Thu, 11 Feb 2010 07:06:31 +0000 (07:06 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 11 Feb 2010 07:06:31 +0000 (07:06 +0000)
commit8b0f7a7d8627392c8faae3801cc91689406960cf
treee41221d70a7711dd6f8c8dfaaca2d7e7ea5fd229
parenta38c707d8219a29f50564c826d2aa3154e214c66
Add and commonize encoder support for all immediates.
Stub out some dummy fixups to make things work.

We can now emit fixups like this:
subl $20, %esp               ## encoding: [0x83,0xec,A]
                                        ##   fixup A - offset: 2, value: 20, kind: fixup_1byte_imm

Emitting $20 as a single-byte fixup to be later resolved
by the assembler is ridiculous of course (vs just emitting
the byte) but this is a failure of the matcher, which
should be producing an imm of 20, not an MCExpr of 20.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86MCCodeEmitter.cpp