File tree Expand file tree Collapse file tree 9 files changed +8
-11
lines changed Expand file tree Collapse file tree 9 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
- // ===----- Baremetal implementation of an exit function ----*- C++ -*-===//
1
+ // ===-------- Baremetal implementation of an exit function -- ----*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
Original file line number Diff line number Diff line change 1
- // ===---------- Implementation of an exit function ---------*- C++ -*-===//
1
+ // ===------------ Implementation of an exit function --- ---------*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
Original file line number Diff line number Diff line change 1
- // ===---------- GPU implementation of an exit function -----*- C++ -*-===//
1
+ // ===------------- GPU implementation of an exit function -- -----*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
Original file line number Diff line number Diff line change 1
- // ===---------- Linux implementation of an exit function ---*- C++ -*-===//
1
+ // ===------------ Linux implementation of an exit function --- ---*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ add_entrypoint_object(
50
50
quick_exit.h
51
51
DEPENDS
52
52
libc.src.errno.errno
53
+ libc.src.__support.OSUtil.osutil
53
54
)
54
55
55
56
add_entrypoint_object (
Original file line number Diff line number Diff line change 1
- // ===-- Implementation of quick_exit -------------------------------------------- ===//
1
+ // ===-- Implementation of quick_exit --------------------------------------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
Original file line number Diff line number Diff line change 1
- // ===-- Implementation header for quick_exit -------------------------- *- C++ -*-===//
1
+ // ===-- Implementation header for quick_exit --------------------*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
Original file line number Diff line number Diff line change @@ -384,7 +384,6 @@ if(LLVM_LIBC_FULL_BUILD)
384
384
DEPENDS
385
385
libc.include.stdlib
386
386
libc.src.stdlib.quick_exit
387
- libc.src.stdlib.exit
388
387
)
389
388
390
389
# Only the GPU has an in-tree 'malloc' implementation.
Original file line number Diff line number Diff line change 1
- // ===-- Unittests for quick_exit ----------------------------------------------- ===//
1
+ // ===-- Unittests for quick_exit ------------------------------------------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
13
13
TEST (LlvmLibcStdlib, quick_exit) {
14
14
EXPECT_EXITS ([] { LIBC_NAMESPACE::quick_exit (1 ); }, 1 );
15
15
EXPECT_EXITS ([] { LIBC_NAMESPACE::quick_exit (65 ); }, 65 );
16
-
17
- EXPECT_EXITS ([] { LIBC_NAMESPACE::exit (1 ); }, 1 );
18
- EXPECT_EXITS ([] { LIBC_NAMESPACE::exit (65 ); }, 65 );
19
16
}
You can’t perform that action at this time.
0 commit comments