diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2010-09-23 18:58:28 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2010-09-23 18:58:28 +0000 |
| commit | 789847ddbbcd683bfc427babed0fd8baf726aaa3 (patch) | |
| tree | f1f76ca440f58a3f9c055bcbe07c25d80cb4934d /libcxx/include/typeinfo | |
| parent | e38495dbc0478981f0bf4e2cec5daf4e58375330 (diff) | |
| download | bcm5719-llvm-789847ddbbcd683bfc427babed0fd8baf726aaa3.tar.gz bcm5719-llvm-789847ddbbcd683bfc427babed0fd8baf726aaa3.zip | |
visibility-decoration sweep completed.
llvm-svn: 114685
Diffstat (limited to 'libcxx/include/typeinfo')
| -rw-r--r-- | libcxx/include/typeinfo | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/include/typeinfo b/libcxx/include/typeinfo index f1334ca2ad6..6ad9d0cc36d 100644 --- a/libcxx/include/typeinfo +++ b/libcxx/include/typeinfo @@ -73,21 +73,27 @@ class _LIBCPP_EXCEPTION_ABI type_info protected: const char* __type_name; + _LIBCPP_INLINE_VISIBILITY explicit type_info(const char* __n) : __type_name(__n) {} public: virtual ~type_info(); + _LIBCPP_INLINE_VISIBILITY const char* name() const {return __type_name;} + _LIBCPP_INLINE_VISIBILITY bool before(const type_info& __arg) const {return __type_name < __arg.__type_name;} + _LIBCPP_INLINE_VISIBILITY size_t hash_code() const throw() {return *reinterpret_cast<const size_t*>(&__type_name);} + _LIBCPP_INLINE_VISIBILITY bool operator==(const type_info& __arg) const {return __type_name == __arg.__type_name;} + _LIBCPP_INLINE_VISIBILITY bool operator!=(const type_info& __arg) const {return !operator==(__arg);} |

