Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions libc/src/__support/annex_k/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@ add_header_library(
libc.src.__support.OSUtil.osutil
libc.src.stdlib.abort
)

add_header_library(
libc_constraint_handler
HDRS
libc_constraint_handler.h
DEPENDS
.abort_handler_s
libc.hdr.types.constraint_handler_t
)
26 changes: 26 additions & 0 deletions libc/src/__support/annex_k/libc_constraint_handler.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//===-- Static header for libc_constraint_handler ---------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_SRC___SUPPORT_ANNEX_K_LIBC_CONSTRAINT_HANDLER_H
#define LLVM_LIBC_SRC___SUPPORT_ANNEX_K_LIBC_CONSTRAINT_HANDLER_H

#include "abort_handler_s.h"
#include "hdr/types/constraint_handler_t.h"

namespace LIBC_NAMESPACE_DECL {

namespace annex_k {

LIBC_INLINE static constraint_handler_t libc_constraint_handler =
&abort_handler_s;

} // namespace annex_k

} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SRC___SUPPORT_ANNEX_K_LIBC_CONSTRAINT_HANDLER_H
Loading