diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-04-03 09:12:38 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-04-03 09:12:38 +0000 |
| commit | caccac10b7e1beeefeae4f389cfed78763dc6aae (patch) | |
| tree | 504abf637923af213db85ec85a6d7508668579a2 | |
| parent | cc7bf7fda1303f2b9bbbaf1f5d79a885af25ff97 (diff) | |
| download | bcm5719-llvm-caccac10b7e1beeefeae4f389cfed78763dc6aae.tar.gz bcm5719-llvm-caccac10b7e1beeefeae4f389cfed78763dc6aae.zip | |
RTTI Uniqueness: remove __name_for_load function.
It's identical to name() these days. (At one point it avoided masking
of the RTTI uniqueness bit because ARM64 ignored it architecturally,
but no longer).
llvm-svn: 205518
| -rw-r--r-- | libcxx/include/typeinfo | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libcxx/include/typeinfo b/libcxx/include/typeinfo index 7fcc8244068..14ef77b31c3 100644 --- a/libcxx/include/typeinfo +++ b/libcxx/include/typeinfo @@ -116,7 +116,7 @@ public: {return *reinterpret_cast<const size_t*>(&__type_name);} #else {if (!(__type_name & _LIBCPP_NONUNIQUE_RTTI_BIT)) return __type_name; - const char *__ptr = __name_for_load(); + const char *__ptr = name(); size_t __hash = 5381; while (unsigned char __c = static_cast<unsigned char>(*__ptr++)) __hash = (__hash * 33) ^ __c; @@ -141,15 +141,7 @@ public: private: _LIBCPP_INLINE_VISIBILITY int __compare_nonunique_names(const type_info &__arg) const _NOEXCEPT - {return __builtin_strcmp(__name_for_load(), __arg.__name_for_load());} - - _LIBCPP_INLINE_VISIBILITY - const char *__name_for_load() const _NOEXCEPT - {uintptr_t __data = __type_name; -#if 1 - __data &= ~_LIBCPP_NONUNIQUE_RTTI_BIT; -#endif - return reinterpret_cast<const char*>(__data);} + {return __builtin_strcmp(name(), __arg.name());} #endif }; |

