Revert "Add missed symbol __aeabi_idivmod for Android."
This reverts commit 5f5a06488ab913daadee2add475b0d46d4a432b9.
Reason for revert: Breaks Android build
ld.lld: error: undefined symbol: __aeabi_idivmod
>>> referenced by LLVMJIT.cpp:547 (external/swiftshader/src/Reactor/LLVMJIT.cpp:547)
>>> LLVMJIT.o:((anonymous namespace)::JITRoutine::JITRoutine(std::__1::unique_ptr<llvm::Module, std::__1::default_delete<llvm::Module> >, llvm::Function**, unsigned int, rr::Config const&)::'lambda'(llvm::StringRef const&)::operator()(llvm::StringRef const&) const) in archive <omitted>/libswiftshader_llvm.a
Change-Id: I153ac3a3a9bc395201024d4b38e43c064691a5ad
Bug: None - build fix.
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/41088
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
diff --git a/src/Reactor/LLVMJIT.cpp b/src/Reactor/LLVMJIT.cpp
index a879b6a..2a36d98 100644
--- a/src/Reactor/LLVMJIT.cpp
+++ b/src/Reactor/LLVMJIT.cpp
@@ -79,10 +79,6 @@
# include <sanitizer/msan_interface.h>
#endif
-#ifdef __ANDROID__
-extern "C" signed __aeabi_idivmod();
-#endif
-
namespace {
// Cache provides a simple, thread-safe key-value store.
@@ -544,7 +540,6 @@
#endif
#ifdef __ANDROID__
- functions.emplace("aeabi_idivmod", reinterpret_cast<void *>(__aeabi_idivmod));
functions.emplace("aeabi_unwind_cpp_pr0", reinterpret_cast<void *>(F::neverCalled));
functions.emplace("sync_synchronize", reinterpret_cast<void *>(F::sync_synchronize));
functions.emplace("sync_fetch_and_add_4", reinterpret_cast<void *>(F::sync_fetch_and_add_4));