rename mapping.c, mapping.h, module.c to have arch prefix. suggested by Alex Ionescu

This commit is contained in:
Nguyen Anh Quynh 2014-01-20 09:47:21 +08:00
parent 747c4eff69
commit f328f30fd9
23 changed files with 28 additions and 27 deletions

View File

@ -53,36 +53,37 @@ ifneq (,$(findstring x86,$(CAPSTONE_ARCHS)))
LIBOBJ += arch/X86/X86Disassembler.o
LIBOBJ += arch/X86/X86IntelInstPrinter.o
LIBOBJ += arch/X86/X86ATTInstPrinter.o
LIBOBJ += arch/X86/mapping.o arch/X86/module.o
LIBOBJ += arch/X86/X86Mapping.o
LIBOBJ += arch/X86/X86Module.o
endif
ifneq (,$(findstring arm,$(CAPSTONE_ARCHS)))
CFLAGS += -DCAPSTONE_HAS_ARM
LIBOBJ += arch/ARM/ARMDisassembler.o
LIBOBJ += arch/ARM/ARMInstPrinter.o
LIBOBJ += arch/ARM/mapping.o
LIBOBJ += arch/ARM/module.o
LIBOBJ += arch/ARM/ARMMapping.o
LIBOBJ += arch/ARM/ARMModule.o
endif
ifneq (,$(findstring mips,$(CAPSTONE_ARCHS)))
CFLAGS += -DCAPSTONE_HAS_MIPS
LIBOBJ += arch/Mips/MipsDisassembler.o
LIBOBJ += arch/Mips/MipsInstPrinter.o
LIBOBJ += arch/Mips/mapping.o
LIBOBJ += arch/Mips/module.o
LIBOBJ += arch/Mips/MipsMapping.o
LIBOBJ += arch/Mips/MipsModule.o
endif
ifneq (,$(findstring powerpc,$(CAPSTONE_ARCHS)))
CFLAGS += -DCAPSTONE_HAS_POWERPC
LIBOBJ += arch/PowerPC/PPCDisassembler.o
LIBOBJ += arch/PowerPC/PPCInstPrinter.o
LIBOBJ += arch/PowerPC/mapping.o
LIBOBJ += arch/PowerPC/module.o
LIBOBJ += arch/PowerPC/PPCMapping.o
LIBOBJ += arch/PowerPC/PPCModule.o
endif
ifneq (,$(findstring aarch64,$(CAPSTONE_ARCHS)))
CFLAGS += -DCAPSTONE_HAS_ARM64
LIBOBJ += arch/AArch64/AArch64BaseInfo.o
LIBOBJ += arch/AArch64/AArch64Disassembler.o
LIBOBJ += arch/AArch64/AArch64InstPrinter.o
LIBOBJ += arch/AArch64/mapping.o
LIBOBJ += arch/AArch64/module.o
LIBOBJ += arch/AArch64/AArch64Mapping.o
LIBOBJ += arch/AArch64/AArch64Module.o
endif
LIBOBJ += MCInst.o

View File

@ -26,7 +26,7 @@
#include "../../MCRegisterInfo.h"
#include "../../MathExtras.h"
#include "mapping.h"
#include "AArch64Mapping.h"
static char *getRegisterName(unsigned RegNo);
static void printOperand(MCInst *MI, unsigned OpNo, SStream *O);

View File

@ -7,7 +7,7 @@
#include "../../include/arm64.h"
#include "../../utils.h"
#include "mapping.h"
#include "AArch64Mapping.h"
#define GET_INSTRINFO_ENUM
#include "AArch64GenInstrInfo.inc"

View File

@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "AArch64Disassembler.h"
#include "AArch64InstPrinter.h"
#include "mapping.h"
#include "AArch64Mapping.h"
void enable_arm64() {}

View File

@ -28,7 +28,7 @@
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"
#include "../../utils.h"
#include "mapping.h"
#include "ARMMapping.h"
#define GET_SUBTARGETINFO_ENUM
#include "ARMGenSubtargetInfo.inc"

View File

@ -7,7 +7,7 @@
#include "../../include/arm.h"
#include "../../cs_priv.h"
#include "mapping.h"
#include "ARMMapping.h"
#define GET_INSTRINFO_ENUM
#include "ARMGenInstrInfo.inc"

View File

@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "ARMDisassembler.h"
#include "ARMInstPrinter.h"
#include "mapping.h"
#include "ARMMapping.h"
static cs_err init(cs_struct *ud)
{

View File

@ -24,7 +24,7 @@
#include "../../utils.h"
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"
#include "mapping.h"
#include "MipsMapping.h"
#include "MipsInstPrinter.h"

View File

@ -7,7 +7,7 @@
#include "../../include/mips.h"
#include "../../utils.h"
#include "mapping.h"
#include "MipsMapping.h"
#define GET_INSTRINFO_ENUM
#include "MipsGenInstrInfo.inc"

View File

@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "MipsDisassembler.h"
#include "MipsInstPrinter.h"
#include "mapping.h"
#include "MipsMapping.h"
void enable_mips() {};

View File

@ -25,9 +25,9 @@
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"
#include "../../MathExtras.h"
#include "mapping.h"
#include "PPCMapping.h"
//#include "mapping.h"
//#include "PPCMapping.h"
static const char *getRegisterName(unsigned RegNo);
static void printOperand(MCInst *MI, unsigned OpNo, SStream *O);

View File

@ -7,7 +7,7 @@
#include "../../include/ppc.h"
#include "../../utils.h"
#include "mapping.h"
#include "PPCMapping.h"
#define GET_INSTRINFO_ENUM
#include "PPCGenInstrInfo.inc"

View File

@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "PPCDisassembler.h"
#include "PPCInstPrinter.h"
#include "mapping.h"
#include "PPCMapping.h"
void enable_powerpc() {};

View File

@ -25,7 +25,7 @@
#include "../../MCInst.h"
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"
#include "mapping.h"
#include "X86Mapping.h"
#define markup(x) ""

View File

@ -26,7 +26,7 @@
#include "X86DisassemblerDecoderCommon.h"
#include "X86DisassemblerDecoder.h"
#include "../../MCInst.h"
#include "mapping.h"
#include "X86Mapping.h"
#define GET_REGINFO_ENUM
#include "X86GenRegisterInfo.inc"

View File

@ -26,7 +26,7 @@
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"
#include "mapping.h"
#include "X86Mapping.h"
static void printMemReference(MCInst *MI, unsigned Op, SStream *O);

View File

@ -3,7 +3,7 @@
#include <string.h>
#include "mapping.h"
#include "X86Mapping.h"
#include "X86DisassemblerDecoder.h"
#include "../../utils.h"

View File

@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "X86Disassembler.h"
#include "X86InstPrinter.h"
#include "mapping.h"
#include "X86Mapping.h"
void enable_x86() {};