summaryrefslogtreecommitdiff
path: root/libc/utils
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2023-04-17 06:41:22 +0000
committerSiva Chandra Reddy <sivachandra@google.com>2023-04-17 15:43:28 +0000
commite2f5495010c7aac452c981b74fd7e592b9db5efe (patch)
tree767ce00b29a3e11bccd495d0b27b691febb9aa92 /libc/utils
parentee341373625163846f4ebc68e46aec6fb46c2c09 (diff)
downloadllvm-e2f5495010c7aac452c981b74fd7e592b9db5efe.tar.gz
[libc][NFC] Move RandUtils.h to test/src/math.
It is currently used only by math tests so moving it to test/src/math keeps it closer to where it is used. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D148497
Diffstat (limited to 'libc/utils')
-rw-r--r--libc/utils/testutils/CMakeLists.txt2
-rw-r--r--libc/utils/testutils/RandUtils.cpp19
-rw-r--r--libc/utils/testutils/RandUtils.h16
3 files changed, 0 insertions, 37 deletions
diff --git a/libc/utils/testutils/CMakeLists.txt b/libc/utils/testutils/CMakeLists.txt
index 2d36ae581673..be1e5a177754 100644
--- a/libc/utils/testutils/CMakeLists.txt
+++ b/libc/utils/testutils/CMakeLists.txt
@@ -5,8 +5,6 @@ endif()
add_library(
libc_test_utils
- RandUtils.cpp
- RandUtils.h
StreamWrapper.cpp
StreamWrapper.h
${EFFile}
diff --git a/libc/utils/testutils/RandUtils.cpp b/libc/utils/testutils/RandUtils.cpp
deleted file mode 100644
index 0ccc62327f05..000000000000
--- a/libc/utils/testutils/RandUtils.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-//===-- RandUtils.cpp -----------------------------------------------------===//
-//
-// 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
-//
-//===----------------------------------------------------------------------===//
-
-#include "RandUtils.h"
-
-#include <cstdlib>
-
-namespace __llvm_libc {
-namespace testutils {
-
-int rand() { return std::rand(); }
-
-} // namespace testutils
-} // namespace __llvm_libc
diff --git a/libc/utils/testutils/RandUtils.h b/libc/utils/testutils/RandUtils.h
deleted file mode 100644
index b65a98bfed21..000000000000
--- a/libc/utils/testutils/RandUtils.h
+++ /dev/null
@@ -1,16 +0,0 @@
-//===-- RandUtils.h ---------------------------------------------*- 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
-//
-//===----------------------------------------------------------------------===//
-
-namespace __llvm_libc {
-namespace testutils {
-
-// Wrapper for std::rand.
-int rand();
-
-} // namespace testutils
-} // namespace __llvm_libc