mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
[libc] Fix swab placement
Per https://reviews.llvm.org/D147970#4256889, swab.cpp is moved out of the /linux subdirectory and cmake specifications are amended to reflect that swab is not OS-specific. Differential Revision: https://reviews.llvm.org/D147988
This commit is contained in:
parent
a38b2d7761
commit
95ca2e2cf9
@ -189,7 +189,6 @@ set(TARGET_LIBC_ENTRYPOINTS
|
||||
libc.src.unistd.readlink
|
||||
libc.src.unistd.readlinkat
|
||||
libc.src.unistd.rmdir
|
||||
libc.src.unistd.swab
|
||||
libc.src.unistd.symlink
|
||||
libc.src.unistd.symlinkat
|
||||
libc.src.unistd.sysconf
|
||||
@ -464,6 +463,7 @@ if(LLVM_LIBC_FULL_BUILD)
|
||||
libc.src.unistd.optind
|
||||
libc.src.unistd.optopt
|
||||
libc.src.unistd.opterr
|
||||
libc.src.unistd.swab
|
||||
|
||||
# sys/select.h entrypoints
|
||||
libc.src.sys.select.select
|
||||
|
@ -191,7 +191,6 @@ set(TARGET_LIBC_ENTRYPOINTS
|
||||
libc.src.unistd.readlink
|
||||
libc.src.unistd.readlinkat
|
||||
libc.src.unistd.rmdir
|
||||
libc.src.unistd.swab
|
||||
libc.src.unistd.symlink
|
||||
libc.src.unistd.symlinkat
|
||||
libc.src.unistd.sysconf
|
||||
@ -494,6 +493,7 @@ if(LLVM_LIBC_FULL_BUILD)
|
||||
libc.src.unistd.optind
|
||||
libc.src.unistd.optopt
|
||||
libc.src.unistd.opterr
|
||||
libc.src.unistd.swab
|
||||
|
||||
# sys/select.h entrypoints
|
||||
libc.src.sys.select.select
|
||||
|
@ -193,7 +193,6 @@ set(TARGET_LIBC_ENTRYPOINTS
|
||||
libc.src.unistd.readlink
|
||||
libc.src.unistd.readlinkat
|
||||
libc.src.unistd.rmdir
|
||||
libc.src.unistd.swab
|
||||
libc.src.unistd.symlink
|
||||
libc.src.unistd.symlinkat
|
||||
libc.src.unistd.sysconf
|
||||
@ -507,6 +506,7 @@ if(LLVM_LIBC_FULL_BUILD)
|
||||
libc.src.unistd.optind
|
||||
libc.src.unistd.optopt
|
||||
libc.src.unistd.opterr
|
||||
libc.src.unistd.swab
|
||||
|
||||
# sys/select.h entrypoints
|
||||
libc.src.sys.select.select
|
||||
|
@ -191,13 +191,6 @@ add_entrypoint_object(
|
||||
.${LIBC_TARGET_OS}.rmdir
|
||||
)
|
||||
|
||||
add_entrypoint_object(
|
||||
swab
|
||||
ALIAS
|
||||
DEPENDS
|
||||
.${LIBC_TARGET_OS}.swab
|
||||
)
|
||||
|
||||
add_entrypoint_object(
|
||||
symlink
|
||||
ALIAS
|
||||
@ -276,6 +269,17 @@ add_entrypoint_object(
|
||||
libc.src.stdio.fprintf
|
||||
)
|
||||
|
||||
add_entrypoint_object(
|
||||
swab
|
||||
SRCS
|
||||
swab.cpp
|
||||
HDRS
|
||||
swab.h
|
||||
DEPENDS
|
||||
libc.include.unistd
|
||||
libc.src.__support.CPP.optional
|
||||
)
|
||||
|
||||
# These aren't actual external per-se, but this is just an easy way to create
|
||||
# targets that don't do anything. They exist to be referenced in entrypoints.txt
|
||||
# so that the header will properly expose their definitions. Their declaration
|
||||
|
@ -353,14 +353,6 @@ add_entrypoint_object(
|
||||
libc.src.errno.errno
|
||||
)
|
||||
|
||||
add_entrypoint_object(
|
||||
swab
|
||||
SRCS
|
||||
swab.cpp
|
||||
HDRS
|
||||
../swab.h
|
||||
)
|
||||
|
||||
add_entrypoint_object(
|
||||
symlink
|
||||
SRCS
|
||||
|
Loading…
Reference in New Issue
Block a user