OSDN Git Service

[libc++] Rename the -fno-rtti Lit feature to just no-rtti
authorLouis Dionne <ldionne@apple.com>
Tue, 29 Sep 2020 20:28:41 +0000 (16:28 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 29 Sep 2020 20:29:44 +0000 (16:29 -0400)
This is consistent to the way we name other Lit features, and it removes
the possibility for confusing the Lit feature with the actual compiler
flag.

22 files changed:
libcxx/test/libcxx/language.support/support.rtti/type.info/type_info.comparison.merged.sh.cpp
libcxx/test/libcxx/language.support/support.rtti/type.info/type_info.comparison.unmerged.sh.cpp
libcxx/test/std/language.support/support.rtti/type.info/type_info.pass.cpp
libcxx/test/std/language.support/support.rtti/type.info/type_info_hash.pass.cpp
libcxx/test/std/utilities/any/any.class/any.observers/type.pass.cpp
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target_type.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.getdeleter/get_deleter.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.cast/dynamic_pointer_cast.pass.cpp
libcxx/test/std/utilities/type.index/type.index.hash/hash.pass.cpp
libcxx/test/std/utilities/type.index/type.index.members/ctor.pass.cpp
libcxx/test/std/utilities/type.index/type.index.members/eq.pass.cpp
libcxx/test/std/utilities/type.index/type.index.members/hash_code.pass.cpp
libcxx/test/std/utilities/type.index/type.index.members/lt.pass.cpp
libcxx/test/std/utilities/type.index/type.index.members/name.pass.cpp
libcxx/test/std/utilities/type.index/type.index.overview/copy_assign.pass.cpp
libcxx/test/std/utilities/type.index/type.index.overview/copy_ctor.pass.cpp
libcxx/test/std/utilities/type.index/type.index.synopsis/hash_type_index.pass.cpp
libcxx/test/support/test.support/test_macros_header.no_rtti.verify.cpp
libcxx/test/support/test.support/test_macros_header.rtti.pass.cpp
libcxx/utils/libcxx/test/params.py
libcxxabi/test/incomplete_type.sh.cpp

index ae6efea..e4cf05a 100644 (file)
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 // RUN: %{cxx} %s %{flags} %{compile_flags} -c -o %t.tu1.o -DTU1 -D_LIBCPP_TYPEINFO_COMPARISON_IMPLEMENTATION=1
 // RUN: %{cxx} %s %{flags} %{compile_flags} -c -o %t.tu2.o -DTU2 -D_LIBCPP_TYPEINFO_COMPARISON_IMPLEMENTATION=1
index 1fb9bc3..3ce47db 100644 (file)
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 // RUN: %{cxx} %s %{flags} %{compile_flags} -c -o %t.tu1.o -DTU1 -D_LIBCPP_TYPEINFO_COMPARISON_IMPLEMENTATION=2
 // RUN: %{cxx} %s %{flags} %{compile_flags} -c -o %t.tu2.o -DTU2 -D_LIBCPP_TYPEINFO_COMPARISON_IMPLEMENTATION=2
index cc238dd..5a2b364 100644 (file)
@@ -22,7 +22,7 @@
 // This test runs in C++03, but we have deprecated using std::function in C++03.
 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include <functional>
 #include <new>
index ca3a6a5..d6b3bf3 100644 (file)
@@ -15,7 +15,7 @@
 // This test runs in C++03, but we have deprecated using std::function in C++03.
 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include <functional>
 #include <typeinfo>
index 35ba517..aae9472 100644 (file)
@@ -17,7 +17,7 @@
 //     size_t operator()(type_index index) const;
 // };
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include <typeindex>
 #include <type_traits>
index e1ed6b8..202d818 100644 (file)
@@ -12,7 +12,7 @@
 
 // type_index(const type_info& rhs);
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include <typeinfo>
 #include <typeindex>
index 5224183..f64e2a7 100644 (file)
@@ -13,7 +13,7 @@
 // bool operator==(const type_index& rhs) const;
 // bool operator!=(const type_index& rhs) const;
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include <typeindex>
 #include <cassert>
index 1a96ca0..3607938 100644 (file)
@@ -15,7 +15,7 @@
 // bool operator> (const type_index& rhs) const;
 // bool operator>=(const type_index& rhs) const;
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include <typeindex>
 #include <cassert>
index e03a926..1101593 100644 (file)
@@ -12,7 +12,7 @@
 
 // const char* name() const;
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include <typeindex>
 #include <string>
index 80eeef6..7260f42 100644 (file)
@@ -12,7 +12,7 @@
 
 // type_index& operator=(const type_index& ti);
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include <typeindex>
 #include <cassert>
index 97b0aa4..70a2e80 100644 (file)
@@ -14,7 +14,7 @@
 //     size_t operator()(type_index index) const;
 // };
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include <typeindex>
 #include <type_traits>
index 4be5e90..a7f3557 100644 (file)
@@ -6,10 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-// Make sure the TEST_HAS_NO_RTTI macro is defined when the -fno-rtti feature
+// Make sure the TEST_HAS_NO_RTTI macro is defined when the no-rtti Lit feature
 // is defined.
 
-// REQUIRES: -fno-rtti
+// REQUIRES: no-rtti
 
 #include "test_macros.h"
 
index 4c602a5..ff8271c 100644 (file)
@@ -6,10 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-// Make sure the TEST_HAS_NO_RTTI macro is NOT defined when the -fno-rtti
+// Make sure the TEST_HAS_NO_RTTI macro is NOT defined when the no-rtti Lit
 // feature isn't defined.
 
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 #include "test_macros.h"
 
index 773890b..175074a 100644 (file)
@@ -27,7 +27,7 @@ DEFAULT_PARAMETERS = [
   Parameter(name='enable_rtti', choices=[True, False], type=bool, default=True,
             help="Whether to enable RTTI when compiling the test suite.",
             feature=lambda rtti: None if rtti else
-              Feature(name='-fno-rtti', compileFlag='-fno-rtti')),
+              Feature(name='no-rtti', compileFlag='-fno-rtti')),
 
   Parameter(name='stdlib', choices=['libc++', 'libstdc++', 'msvc'], type=str, default='libc++',
             help="The C++ Standard Library implementation being tested.",
index fba24b2..5521a10 100644 (file)
@@ -14,7 +14,7 @@
 // addresses.
 
 // UNSUPPORTED: no-exceptions
-// UNSUPPORTED: -fno-rtti
+// UNSUPPORTED: no-rtti
 
 // NOTE: Link libc++abi explicitly and before libc++ so that libc++ doesn't drag
 // in the system libc++abi installation on OS X. (DYLD_LIBRARY_PATH is ignored