[libcxx-commits] [libcxx] 3285c7a - [libcxx] Remove the locale fallback for NuttX

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 31 06:47:18 PDT 2021


Author: Xiang Xiao
Date: 2021-08-31T09:46:55-04:00
New Revision: 3285c7a4364eb88fd6753f362d74ee008d5479de

URL: https://github.com/llvm/llvm-project/commit/3285c7a4364eb88fd6753f362d74ee008d5479de
DIFF: https://github.com/llvm/llvm-project/commit/3285c7a4364eb88fd6753f362d74ee008d5479de.diff

LOG: [libcxx] Remove the locale fallback for NuttX

Since these functions can handled by NuttX's libc now

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D108895

Added: 
    

Modified: 
    libcxx/include/CMakeLists.txt
    libcxx/include/__locale

Removed: 
    libcxx/include/__support/nuttx/xlocale.h


################################################################################
diff  --git a/libcxx/include/CMakeLists.txt b/libcxx/include/CMakeLists.txt
index bedce0e49e614..59d557284986a 100644
--- a/libcxx/include/CMakeLists.txt
+++ b/libcxx/include/CMakeLists.txt
@@ -250,7 +250,6 @@ set(files
   __support/ibm/xlocale.h
   __support/musl/xlocale.h
   __support/newlib/xlocale.h
-  __support/nuttx/xlocale.h
   __support/openbsd/xlocale.h
   __support/solaris/floatingpoint.h
   __support/solaris/wchar.h

diff  --git a/libcxx/include/__locale b/libcxx/include/__locale
index ad742997d9ac3..5f4d66fc56769 100644
--- a/libcxx/include/__locale
+++ b/libcxx/include/__locale
@@ -22,8 +22,6 @@
 #if defined(_LIBCPP_MSVCRT_LIKE)
 # include <cstring>
 # include <__support/win32/locale_win32.h>
-#elif defined(__NuttX__)
-# include <__support/nuttx/xlocale.h>
 #elif defined(_AIX) || defined(__MVS__)
 # include <__support/ibm/xlocale.h>
 #elif defined(__ANDROID__)

diff  --git a/libcxx/include/__support/nuttx/xlocale.h b/libcxx/include/__support/nuttx/xlocale.h
deleted file mode 100644
index be738e3b64e48..0000000000000
--- a/libcxx/include/__support/nuttx/xlocale.h
+++ /dev/null
@@ -1,18 +0,0 @@
-// -*- 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
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef _LIBCPP_SUPPORT_NUTTX_XLOCALE_H
-#define _LIBCPP_SUPPORT_NUTTX_XLOCALE_H
-
-#if defined(__NuttX__)
-#include <__support/xlocale/__posix_l_fallback.h>
-#include <__support/xlocale/__strtonum_fallback.h>
-#endif // __NuttX__
-
-#endif


        


More information about the libcxx-commits mailing list