clang/Darwin: Include divsi3 functions on x86, they are used by the divmod
implementation.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@131034 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/make/platform/clang_darwin.mk b/make/platform/clang_darwin.mk
index 9345ff4..7776652 100644
--- a/make/platform/clang_darwin.mk
+++ b/make/platform/clang_darwin.mk
@@ -68,6 +68,11 @@
FUNCTIONS.10.4 := eprintf floatundidf floatundisf floatundixf
FUNCTIONS.ios := divmodsi4 udivmodsi4
+# On x86, the divmod functions reference divsi.
+FUNCTIONS.ios.i386 := $(FUNCTIONS.ios) \
+ divsi3 udivsi3
+FUNCTIONS.ios.x86_64 := $(FUNCTIONS.ios) \
+ divsi3 udivsi3
FUNCTIONS.ios.armv6 := $(FUNCTIONS.ios) \
sync_synchronize \
switch16 switch32 switch8 switchu8 \