From e7c1cd18d3a0aeb3015698ff047242ed272ec995 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 29 Apr 2016 04:22:26 +0000 Subject: [PATCH] [X86] Include X86MCTargetDesc.h directly in X86Disassembler.cpp instead of duplicating parts of it. NFC llvm-svn: 267984 --- llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp b/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp index 01d4f1c..8647334 100644 --- a/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp +++ b/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp @@ -16,6 +16,7 @@ #include "X86Disassembler.h" #include "X86DisassemblerDecoder.h" +#include "MCTargetDesc/X86MCTargetDesc.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCDisassembler/MCDisassembler.h" #include "llvm/MC/MCExpr.h" @@ -31,13 +32,6 @@ using namespace llvm::X86Disassembler; #define DEBUG_TYPE "x86-disassembler" -#define GET_REGINFO_ENUM -#include "X86GenRegisterInfo.inc" -#define GET_INSTRINFO_ENUM -#include "X86GenInstrInfo.inc" -#define GET_SUBTARGETINFO_ENUM -#include "X86GenSubtargetInfo.inc" - void llvm::X86Disassembler::Debug(const char *file, unsigned line, const char *s) { dbgs() << file << ":" << line << ": " << s; @@ -67,8 +61,6 @@ namespace X86 { }; } -extern Target TheX86_32Target, TheX86_64Target; - } static bool translateInstruction(MCInst &target, -- 2.7.4