OSDN Git Service

Fix layering by moving X86DisassemblerDecoderCommon to Support
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 23 Mar 2018 23:58:20 +0000 (23:58 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 23 Mar 2018 23:58:20 +0000 (23:58 +0000)
This is used from llvm tblgen and the X86Disassembler - the only common
library (apart from TableGen, which probably doesn't make sense to have
as a dependency from a release tool (rather than a use-while-building-llvm
tool) of LLVM)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328393 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/X86DisassemblerDecoderCommon.h [moved from lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h with 100% similarity]
lib/Target/X86/Disassembler/X86DisassemblerDecoder.h
utils/TableGen/DisassemblerEmitter.cpp
utils/TableGen/X86DisassemblerShared.h

index 1be3c43..2c2b7dc 100644 (file)
@@ -16,8 +16,8 @@
 #ifndef LLVM_LIB_TARGET_X86_DISASSEMBLER_X86DISASSEMBLERDECODER_H
 #define LLVM_LIB_TARGET_X86_DISASSEMBLER_X86DISASSEMBLERDECODER_H
 
-#include "X86DisassemblerDecoderCommon.h"
 #include "llvm/ADT/ArrayRef.h"
+#include "llvm/Support/X86DisassemblerDecoderCommon.h"
 
 namespace llvm {
 namespace X86Disassembler {
index 6e1d8dd..971ad6a 100644 (file)
@@ -74,8 +74,8 @@ using namespace llvm::X86Disassembler;
 ///     accurate.  Sometimes they are not.
 /// (3) to fix the tables to reflect the actual context (for example, required
 ///     prefixes), and possibly to add a new context by editing
-///     lib/Target/X86/X86DisassemblerDecoderCommon.h.  This is unlikely to be
-///     the cause.
+///     include/llvm/Support/X86DisassemblerDecoderCommon.h.  This is unlikely
+///     to be the cause.
 ///
 /// DisassemblerEmitter.cpp contains the implementation for the emitter,
 ///   which simply pulls out instructions from the CodeGenTarget and pushes them
index e5889e9..550f619 100644 (file)
@@ -13,7 +13,7 @@
 #include <cstring>
 #include <string>
 
-#include "../../lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h"
+#include "llvm/Support/X86DisassemblerDecoderCommon.h"
 
 struct InstructionSpecifier {
   llvm::X86Disassembler::OperandSpecifier