[libc-commits] [libc] 2529470 - [libc] NFC - Move the round redirector from its own nested directory.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Fri Mar 20 12:16:24 PDT 2020


Author: Siva Chandra Reddy
Date: 2020-03-20T12:15:27-07:00
New Revision: 25294708f5ee8c0063c9ff20b862aa71cf0eeaad

URL: https://github.com/llvm/llvm-project/commit/25294708f5ee8c0063c9ff20b862aa71cf0eeaad
DIFF: https://github.com/llvm/llvm-project/commit/25294708f5ee8c0063c9ff20b862aa71cf0eeaad.diff

LOG: [libc] NFC - Move the round redirector from its own nested directory.

We have moved away from directories for entrypoints but this function
was not moved out.

Submitting as obvious.

Added: 
    libc/src/math/round.cpp
    libc/src/math/round.h
    libc/src/math/round_redirector.cpp

Modified: 
    libc/src/math/CMakeLists.txt

Removed: 
    libc/src/math/round/CMakeLists.txt
    libc/src/math/round/round.cpp
    libc/src/math/round/round.h
    libc/src/math/round/round_redirector.cpp


################################################################################
diff  --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt
index 9501785fe1f4..e7ad9d2a73fe 100644
--- a/libc/src/math/CMakeLists.txt
+++ b/libc/src/math/CMakeLists.txt
@@ -1 +1,14 @@
-add_subdirectory(round)
+add_entrypoint_object(
+  round
+  REDIRECTED
+  SRCS
+    round.cpp
+  HDRS
+    round.h
+)
+
+add_redirector_object(
+  round_redirector
+  SRC
+    round_redirector.cpp
+)

diff  --git a/libc/src/math/round/round.cpp b/libc/src/math/round.cpp
similarity index 94%
rename from libc/src/math/round/round.cpp
rename to libc/src/math/round.cpp
index 26eeadb378f1..6031ed29e6da 100644
--- a/libc/src/math/round/round.cpp
+++ b/libc/src/math/round.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "src/math/round/round.h"
+#include "src/math/round.h"
 
 #include "src/__support/common.h"
 

diff  --git a/libc/src/math/round/round.h b/libc/src/math/round.h
similarity index 100%
rename from libc/src/math/round/round.h
rename to libc/src/math/round.h

diff  --git a/libc/src/math/round/CMakeLists.txt b/libc/src/math/round/CMakeLists.txt
deleted file mode 100644
index e7ad9d2a73fe..000000000000
--- a/libc/src/math/round/CMakeLists.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-add_entrypoint_object(
-  round
-  REDIRECTED
-  SRCS
-    round.cpp
-  HDRS
-    round.h
-)
-
-add_redirector_object(
-  round_redirector
-  SRC
-    round_redirector.cpp
-)

diff  --git a/libc/src/math/round/round_redirector.cpp b/libc/src/math/round_redirector.cpp
similarity index 100%
rename from libc/src/math/round/round_redirector.cpp
rename to libc/src/math/round_redirector.cpp


        


More information about the libc-commits mailing list