Skip to content

Commit 6183415

Browse files
committed
Enable typeinfo and type_index
Signed-off-by: Nick Hynes <nhynes@berkeley.edu>
1 parent 0f45cad commit 6183415

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

sdk/tlibcxx/include/typeindex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,12 @@ public:
8181
bool operator>=(const type_index& __y) const _NOEXCEPT
8282
{return !__t_->before(*__y.__t_);}
8383

84-
#if !defined(_LIBCPP_SGX_CONFIG)
8584
_LIBCPP_INLINE_VISIBILITY
8685
size_t hash_code() const _NOEXCEPT {return __t_->hash_code();}
8786
_LIBCPP_INLINE_VISIBILITY
8887
const char* name() const _NOEXCEPT {return __t_->name();}
89-
#endif // !defined(_LIBCPP_SGX_CONFIG)
9088
};
9189

92-
#if !defined(_LIBCPP_SGX_CONFIG)
9390
template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY hash;
9491

9592
template <>
@@ -100,7 +97,6 @@ struct _LIBCPP_TYPE_VIS_ONLY hash<type_index>
10097
size_t operator()(type_index __index) const _NOEXCEPT
10198
{return __index.hash_code();}
10299
};
103-
#endif // !defined(_LIBCPP_SGX_CONFIG)
104100

105101
_LIBCPP_END_NAMESPACE_STD
106102

sdk/tlibcxx/include/typeinfo

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ public:
5858
*/
5959

6060
#include <__config>
61-
#if defined(_LIBCPP_SGX_CONFIG)
62-
#include <../stdc++/typeinfo>
63-
#else // !defined(_LIBCPP_SGX_CONFIG)
6461
#include <exception>
6562
#include <cstddef>
6663
#include <cstdint>
@@ -168,6 +165,4 @@ public:
168165

169166
} // std
170167

171-
#endif // !defined(_LIBCPP_SGX_CONFIG)
172-
173168
#endif // __LIBCPP_TYPEINFO

0 commit comments

Comments
 (0)