summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-05-06 23:06:07 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-05-06 23:06:07 +0000
commiteac62c5388a1c3aa4c1a70c66ed9dd7a614f4a45 (patch)
tree49990852d7b99046a19424ca6227d6acdb29192d /compiler-rt
parented0443624be80edd13a6202ef0c92c4cced477b9 (diff)
downloadbcm5719-llvm-eac62c5388a1c3aa4c1a70c66ed9dd7a614f4a45.tar.gz
bcm5719-llvm-eac62c5388a1c3aa4c1a70c66ed9dd7a614f4a45.zip
clang/Darwin: Include divsi3 functions on x86, they are used by the divmod
implementation. llvm-svn: 131034
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/make/platform/clang_darwin.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/make/platform/clang_darwin.mk b/compiler-rt/make/platform/clang_darwin.mk
index 9345ff451f1..77766524537 100644
--- a/compiler-rt/make/platform/clang_darwin.mk
+++ b/compiler-rt/make/platform/clang_darwin.mk
@@ -68,6 +68,11 @@ FUNCTIONS.eprintf := eprintf
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 \
OpenPOWER on IntegriCloud