2020-06-09 08:31:04 +08:00
|
|
|
def LLVMLibcExt : StandardSpec<"llvm_libc_ext"> {
|
|
|
|
HeaderSpec String = HeaderSpec<
|
|
|
|
"string.h",
|
|
|
|
[], // Macros
|
|
|
|
[], // Types
|
|
|
|
[], // Enumerations
|
|
|
|
[
|
|
|
|
FunctionSpec<
|
|
|
|
"bzero",
|
|
|
|
RetValSpec<VoidType>,
|
2021-08-20 01:55:16 +08:00
|
|
|
[ArgSpec<VoidPtr>, ArgSpec<SizeTType>]
|
|
|
|
>,
|
|
|
|
FunctionSpec<
|
|
|
|
"bcmp",
|
|
|
|
RetValSpec<IntType>,
|
|
|
|
[ArgSpec<ConstVoidPtr>, ArgSpec<ConstVoidPtr>, ArgSpec<SizeTType>]
|
2020-06-09 08:31:04 +08:00
|
|
|
>,
|
|
|
|
]
|
|
|
|
>;
|
|
|
|
|
2020-10-14 07:20:50 +08:00
|
|
|
HeaderSpec Assert = HeaderSpec<
|
|
|
|
"assert.h",
|
|
|
|
[], // Macros
|
|
|
|
[], // Types
|
|
|
|
[], // Enumerations
|
|
|
|
[
|
|
|
|
FunctionSpec<
|
|
|
|
"__assert_fail",
|
|
|
|
RetValSpec<NoReturn>,
|
2021-08-20 01:55:16 +08:00
|
|
|
[ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<UnsignedType>, ArgSpec<ConstCharPtr>]
|
2020-10-14 07:20:50 +08:00
|
|
|
|
|
|
|
>,
|
|
|
|
]
|
|
|
|
>;
|
|
|
|
|
2020-06-09 08:31:04 +08:00
|
|
|
let Headers = [
|
|
|
|
String,
|
2020-10-14 07:20:50 +08:00
|
|
|
Assert,
|
2020-06-09 08:31:04 +08:00
|
|
|
];
|
|
|
|
}
|