mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-03 08:02:41 +00:00
[libc][NFC] Make __support/common.h an in tree header.
It was previously a generated header. It can easily converted to a generated header if required in future. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D94445
This commit is contained in:
parent
32c073acb3
commit
aefeb5f136
@ -1,9 +1,5 @@
|
||||
add_gen_header(
|
||||
add_header_library(
|
||||
common
|
||||
DEF_FILE common.h.def
|
||||
PARAMS
|
||||
platform_defs=../../config/${LIBC_TARGET_OS}/platform_defs.h.inc
|
||||
GEN_HDR common.h
|
||||
DATA_FILES
|
||||
../../config/${LIBC_TARGET_OS}/platform_defs.h.inc
|
||||
HDRS
|
||||
common.h
|
||||
)
|
||||
|
@ -21,12 +21,12 @@
|
||||
|
||||
#ifdef LLVM_LIBC_PUBLIC_PACKAGING
|
||||
#define LLVM_LIBC_FUNCTION(type, name, arglist) \
|
||||
LLVM_LIBC_FUNCTION_ATTR decltype(__llvm_libc::name) __##name##_impl__ __asm__(#name); \
|
||||
LLVM_LIBC_FUNCTION_ATTR decltype(__llvm_libc::name) \
|
||||
__##name##_impl__ __asm__(#name); \
|
||||
decltype(__llvm_libc::name) name [[gnu::alias(#name)]]; \
|
||||
type __##name##_impl__ arglist
|
||||
#else
|
||||
#define LLVM_LIBC_FUNCTION(type, name, arglist)\
|
||||
type name arglist
|
||||
#define LLVM_LIBC_FUNCTION(type, name, arglist) type name arglist
|
||||
#endif
|
||||
|
||||
#endif // LLVM_LIBC_SUPPORT_COMMON_H
|
Loading…
x
Reference in New Issue
Block a user