From 1cc805c058260b39eb0668ba63450156acc83078 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 11 Nov 2011 12:39:35 +0000 Subject: [PATCH] Remove the unnecessary dependency on libMBlazeCodeGen from libMBlazeDisassembler. llvm-svn: 144383 --- llvm/lib/Target/MBlaze/Disassembler/LLVMBuild.txt | 8 +------- .../lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/llvm/lib/Target/MBlaze/Disassembler/LLVMBuild.txt b/llvm/lib/Target/MBlaze/Disassembler/LLVMBuild.txt index b2b3a3a5cf64..c5c4f8043bf4 100644 --- a/llvm/lib/Target/MBlaze/Disassembler/LLVMBuild.txt +++ b/llvm/lib/Target/MBlaze/Disassembler/LLVMBuild.txt @@ -19,12 +19,6 @@ type = Library name = MBlazeDisassembler parent = MBlaze -; Strictly speaking, we probably shouldn't have a dependency on -; MBlazeCodeGen. However, given the current factoring we end up including -; MBlazeGenRegisterInfo.inc in the disassembler. Those generated headers end up -; referencing external variables through GPRRegClass, SPRRegClass, and -; CRCRegClass. These aren't actually used, but some compilers may generate -; references to them. -required_libraries = MBlazeCodeGen MBlazeDesc MBlazeInfo MC Support +required_libraries = MBlazeDesc MBlazeInfo MC Support add_to_library_groups = MBlaze diff --git a/llvm/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp b/llvm/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp index c3a3833cb7f0..308731729211 100644 --- a/llvm/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp +++ b/llvm/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp @@ -13,13 +13,12 @@ //===----------------------------------------------------------------------===// #include "MBlaze.h" -#include "MBlazeInstrInfo.h" #include "MBlazeDisassembler.h" #include "llvm/MC/EDInstInfo.h" #include "llvm/MC/MCDisassembler.h" -#include "llvm/MC/MCDisassembler.h" #include "llvm/MC/MCInst.h" +#include "llvm/MC/MCInstrDesc.h" #include "llvm/Support/Debug.h" #include "llvm/Support/MemoryObject.h" #include "llvm/Support/TargetRegistry.h"