diff options
| author | Dan Albert <danalbert@google.com> | 2014-05-19 10:32:42 -0700 |
|---|---|---|
| committer | Dan Albert <danalbert@google.com> | 2014-05-19 10:32:42 -0700 |
| commit | 48ee47ce25fa9c99df49855ebf77ae1758d58d47 (patch) | |
| tree | c3d23c62894a3dbabd5d0160166afe7ab5f4fcf3 | |
| parent | 3a757f403ba98ab2132ceb8d290dfafea6c4c7a5 (diff) | |
| download | bionic-48ee47ce25fa9c99df49855ebf77ae1758d58d47.zip bionic-48ee47ce25fa9c99df49855ebf77ae1758d58d47.tar.gz bionic-48ee47ce25fa9c99df49855ebf77ae1758d58d47.tar.bz2 | |
Removes RTTI support from libc
Our type_info stub implementation is incompatible with the libc++ headers. Since
we don't need this support internally and anyone that wants RTTI support will
have to use libc++ anyway, this can be safely removed.
Change-Id: Ied8b67a0d86a4eb0e31191a50cceba0e39a16a6d
| -rw-r--r-- | libc/Android.mk | 1 | ||||
| -rw-r--r-- | libc/bionic/typeinfo.cpp | 43 |
2 files changed, 0 insertions, 44 deletions
diff --git a/libc/Android.mk b/libc/Android.mk index f0ee09d..039e17b 100644 --- a/libc/Android.mk +++ b/libc/Android.mk @@ -215,7 +215,6 @@ libc_bionic_src_files := \ bionic/termios.cpp \ bionic/thread_atexit.cpp \ bionic/tmpfile.cpp \ - bionic/typeinfo.cpp \ bionic/umount.cpp \ bionic/unlink.cpp \ bionic/utimes.cpp \ diff --git a/libc/bionic/typeinfo.cpp b/libc/bionic/typeinfo.cpp deleted file mode 100644 index 90180fb..0000000 --- a/libc/bionic/typeinfo.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include <typeinfo> -#include <stdlib.h> - -type_info::type_info() { -} - -type_info::~type_info() { -} - -char const* type_info::name() const { - return "N/A"; -} - -bool type_info::operator==(type_info const& /*rhs*/) const { - return false; -} - -bool type_info::operator!=(type_info const& /*rhs*/) const { - return false; -} - -bool type_info::before(type_info const& /*rhs*/) const { - return false; -} - -type_info::type_info(type_info const& /*rhs*/) { -} |
