Fixed a nasty layering violation in the edis source
authorSean Callanan <scallanan@apple.com>
Tue, 13 Apr 2010 21:21:57 +0000 (21:21 +0000)
committerSean Callanan <scallanan@apple.com>
Tue, 13 Apr 2010 21:21:57 +0000 (21:21 +0000)
commit9899f70a7406d632c82849978bf6981f1ee4ccb5
tree8b3b82586ac00721aad38f465f9e579fb7ba9865
parent0a6f053732c7a654cb9fe3e501680a104c3381a1
Fixed a nasty layering violation in the edis source
code.  It used to #include the enhanced disassembly
information for the targets it supported straight
out of lib/Target/{X86,ARM,...} but now it uses a
new interface provided by MCDisassembler, and (so
far) implemented by X86 and ARM.

Also removed hacky #define-controlled initialization
of targets in edis.  If clients only want edis to
initialize a limited set of targets, they can set
--enable-targets on the configure command line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101179 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/MC/EDInstInfo.h [new file with mode: 0644]
include/llvm/MC/MCDisassembler.h
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
lib/Target/ARM/Disassembler/ARMDisassembler.h
lib/Target/X86/Disassembler/X86Disassembler.cpp
lib/Target/X86/Disassembler/X86Disassembler.h
tools/edis/EDDisassembler.cpp
tools/edis/EDDisassembler.h
tools/edis/EDInst.cpp
tools/edis/EDInst.h
tools/edis/EDOperand.cpp
tools/edis/Makefile
utils/TableGen/EDEmitter.cpp