Skip to content

Commit

Permalink
i#1684 xarch-IR: Remove mangle.c from drdecode (#4322)
Browse files Browse the repository at this point in the history
Moves the handful of functions from mangle.c used by drdecode (things
that are difficult to untangle from the IR functions) into ir_utils.c
Renames the top-level ir_utils.c to ir_utils_shared.c.  Adds
ir_utils.h.

Issue: #1684
  • Loading branch information
derekbruening committed Jun 12, 2020
1 parent a4261d6 commit 002ec04
Show file tree
Hide file tree
Showing 9 changed files with 962 additions and 838 deletions.
5 changes: 2 additions & 3 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ set(DECODER_SRCS
ir/${ARCH_NAME}/encode.c
ir/disassemble_shared.c
ir/${ARCH_NAME}/disassemble.c
ir/ir_utils_shared.c
ir/${ARCH_NAME_SHARED}/ir_utils.c
)
if (X86)
set(DECODER_SRCS ${DECODER_SRCS}
Expand Down Expand Up @@ -268,7 +270,6 @@ set(ARCH_SRCS
arch/proc_shared.c
arch/${ARCH_NAME}/proc.c
arch/mangle_shared.c
ir/ir_utils.c
arch/${ARCH_NAME_SHARED}/mangle.c
arch/clean_call_opt_shared.c
arch/${ARCH_NAME}/clean_call_opt.c
Expand Down Expand Up @@ -962,8 +963,6 @@ endif (UNIX)
# static decoding library
add_library(drdecode
${DECODER_SRCS}
arch/${ARCH_NAME_SHARED}/mangle.c
ir/ir_utils.c
ir/decodelib.c
string.c
io.c
Expand Down
Loading

0 comments on commit 002ec04

Please sign in to comment.