aboutsummaryrefslogtreecommitdiffstats
path: root/tools/edis/EDInst.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-04-13 21:21:57 +0000
committerSean Callanan <scallanan@apple.com>2010-04-13 21:21:57 +0000
commiteed7cb6cac7dab33af13858e6697d68caab8778f (patch)
tree8b3b82586ac00721aad38f465f9e579fb7ba9865 /tools/edis/EDInst.cpp
parent68266dc224d66ec4eca4c87348fd5b032d3eb4b0 (diff)
downloadexternal_llvm-eed7cb6cac7dab33af13858e6697d68caab8778f.tar.gz
external_llvm-eed7cb6cac7dab33af13858e6697d68caab8778f.tar.bz2
external_llvm-eed7cb6cac7dab33af13858e6697d68caab8778f.zip
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
Diffstat (limited to 'tools/edis/EDInst.cpp')
-rw-r--r--tools/edis/EDInst.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/edis/EDInst.cpp b/tools/edis/EDInst.cpp
index de40770e90..af3a54abbc 100644
--- a/tools/edis/EDInst.cpp
+++ b/tools/edis/EDInst.cpp
@@ -18,6 +18,7 @@
#include "EDOperand.h"
#include "EDToken.h"
+#include "llvm/MC/EDInstInfo.h"
#include "llvm/MC/MCInst.h"
using namespace llvm;
@@ -25,7 +26,7 @@ using namespace llvm;
EDInst::EDInst(llvm::MCInst *inst,
uint64_t byteSize,
EDDisassembler &disassembler,
- const InstInfo *info) :
+ const llvm::EDInstInfo *info) :
Disassembler(disassembler),
Inst(inst),
ThisInstInfo(info),