Skip to content

Commit 50a883e

Browse files
committed
addressed comments for formatting and unecessary testing/dependencies
1 parent 9a9d89e commit 50a883e

File tree

9 files changed

+8
-11
lines changed

9 files changed

+8
-11
lines changed

libc/src/__support/OSUtil/baremetal/exit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===----- Baremetal implementation of an exit function ----*- C++ -*-===//
1+
//===-------- Baremetal implementation of an exit function ------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/src/__support/OSUtil/exit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---------- Implementation of an exit function ---------*- C++ -*-===//
1+
//===------------ Implementation of an exit function ------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/src/__support/OSUtil/gpu/exit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---------- GPU implementation of an exit function -----*- C++ -*-===//
1+
//===------------- GPU implementation of an exit function -------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/src/__support/OSUtil/linux/exit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---------- Linux implementation of an exit function ---*- C++ -*-===//
1+
//===------------ Linux implementation of an exit function ------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/src/stdlib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ add_entrypoint_object(
5050
quick_exit.h
5151
DEPENDS
5252
libc.src.errno.errno
53+
libc.src.__support.OSUtil.osutil
5354
)
5455

5556
add_entrypoint_object(

libc/src/stdlib/quick_exit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Implementation of quick_exit --------------------------------------------===//
1+
//===-- Implementation of quick_exit --------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/src/stdlib/quick_exit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Implementation header for quick_exit --------------------------*- C++ -*-===//
1+
//===-- Implementation header for quick_exit --------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/test/src/stdlib/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ if(LLVM_LIBC_FULL_BUILD)
384384
DEPENDS
385385
libc.include.stdlib
386386
libc.src.stdlib.quick_exit
387-
libc.src.stdlib.exit
388387
)
389388

390389
# Only the GPU has an in-tree 'malloc' implementation.

libc/test/src/stdlib/quick_exit_test.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Unittests for quick_exit -----------------------------------------------===//
1+
//===-- Unittests for quick_exit ------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -13,7 +13,4 @@
1313
TEST(LlvmLibcStdlib, quick_exit) {
1414
EXPECT_EXITS([] { LIBC_NAMESPACE::quick_exit(1); }, 1);
1515
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);
1916
}

0 commit comments

Comments
 (0)