Skip to content

Commit 63619c4

Browse files
committed
[libc][annex_k] Add libc_constraint_handler.
1 parent f39a558 commit 63619c4

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

libc/src/__support/annex_k/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ add_header_library(
1010
libc.src.__support.OSUtil.osutil
1111
libc.src.stdlib.abort
1212
)
13+
14+
add_header_library(
15+
libc_constraint_handler
16+
HDRS
17+
libc_constraint_handler.h
18+
DEPENDS
19+
.abort_handler_s
20+
libc.hdr.types.constraint_handler_t
21+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//===-- Static header for libc_constraint_handler ---------------*- C++ -*-===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef LLVM_LIBC_SRC___SUPPORT_ANNEX_K_LIBC_CONSTRAINT_HANDLER_H
10+
#define LLVM_LIBC_SRC___SUPPORT_ANNEX_K_LIBC_CONSTRAINT_HANDLER_H
11+
12+
#include "abort_handler_s.h"
13+
#include "hdr/types/constraint_handler_t.h"
14+
15+
namespace LIBC_NAMESPACE_DECL {
16+
17+
namespace annex_k {
18+
19+
LIBC_INLINE static constraint_handler_t libc_constraint_handler =
20+
&abort_handler_s;
21+
22+
} // namespace annex_k
23+
24+
} // namespace LIBC_NAMESPACE_DECL
25+
26+
#endif // LLVM_LIBC_SRC___SUPPORT_ANNEX_K_LIBC_CONSTRAINT_HANDLER_H

0 commit comments

Comments
 (0)