Switch to using DEFINE_COMPILERRT_[PRIVATE_]FUNCTION to define function symbols inside .S files.

llvm-svn: 85264
diff --git a/compiler-rt/lib/i386/ashldi3.S b/compiler-rt/lib/i386/ashldi3.S
index 7a7906b..af6f98b 100644
--- a/compiler-rt/lib/i386/ashldi3.S
+++ b/compiler-rt/lib/i386/ashldi3.S
@@ -17,8 +17,7 @@
 
 .text
 .align 4
-.globl ___ashldi3
-___ashldi3:
+DEFINE_COMPILERRT_FUNCTION(__ashldi3)
 	movd	  12(%esp),		%xmm2	// Load count
 #ifndef TRUST_CALLERS_USE_64_BIT_STORES
 	movd	   4(%esp),		%xmm0
@@ -37,8 +36,7 @@
 
 .text
 .align 4
-.globl ___ashldi3
-___ashldi3:
+DEFINE_COMPILERRT_FUNCTION(__ashldi3)
 	movl	  12(%esp),		%ecx	// Load count
 	movl	   8(%esp),		%edx	// Load high
 	movl	   4(%esp),		%eax	// Load low
diff --git a/compiler-rt/lib/i386/ashrdi3.S b/compiler-rt/lib/i386/ashrdi3.S
index d0a4c42..346f9b1 100644
--- a/compiler-rt/lib/i386/ashrdi3.S
+++ b/compiler-rt/lib/i386/ashrdi3.S
@@ -10,8 +10,7 @@
 
 .text
 .align 4
-.globl ___ashrdi3
-___ashrdi3:
+DEFINE_COMPILERRT_FUNCTION(__ashrdi3)
 	movd	  12(%esp),		%xmm2	// Load count
 	movl	   8(%esp),		%eax
 #ifndef TRUST_CALLERS_USE_64_BIT_STORES
@@ -47,8 +46,7 @@
 
 .text
 .align 4
-.globl ___ashrdi3
-___ashrdi3:
+DEFINE_COMPILERRT_FUNCTION(__ashrdi3)
 	movl	  12(%esp),		%ecx	// Load count
 	movl	   8(%esp),		%edx	// Load high
 	movl	   4(%esp),		%eax	// Load low
diff --git a/compiler-rt/lib/i386/divdi3.S b/compiler-rt/lib/i386/divdi3.S
index 1ce22da..5ad530c 100644
--- a/compiler-rt/lib/i386/divdi3.S
+++ b/compiler-rt/lib/i386/divdi3.S
@@ -20,8 +20,7 @@
 
 .text
 .align 4
-.globl ___divdi3
-___divdi3:
+DEFINE_COMPILERRT_FUNCTION(__divdi3)
 
 /* This is currently implemented by wrapping the unsigned divide up in an absolute
    value, then restoring the correct sign at the end of the computation.  This could
diff --git a/compiler-rt/lib/i386/floatdidf.S b/compiler-rt/lib/i386/floatdidf.S
index 012697b..8bf9f0d 100644
--- a/compiler-rt/lib/i386/floatdidf.S
+++ b/compiler-rt/lib/i386/floatdidf.S
@@ -16,8 +16,7 @@
 
 .text
 .align 4
-.globl ___floatdidf
-___floatdidf:
+DEFINE_COMPILERRT_FUNCTION(__floatdidf)
 	cvtsi2sd	8(%esp),			%xmm1
 	movss		4(%esp),			%xmm0 // low 32 bits of a
 	calll		0f
diff --git a/compiler-rt/lib/i386/floatdisf.S b/compiler-rt/lib/i386/floatdisf.S
index 152a93d..741e4a6 100644
--- a/compiler-rt/lib/i386/floatdisf.S
+++ b/compiler-rt/lib/i386/floatdisf.S
@@ -16,8 +16,7 @@
 
 .text
 .align 4
-.globl ___floatdisf
-___floatdisf:
+DEFINE_COMPILERRT_FUNCTION(__floatdisf)
 #ifndef TRUST_CALLERS_USE_64_BIT_STORES
 	movd		4(%esp),	%xmm0
 	movd		8(%esp),	%xmm1
diff --git a/compiler-rt/lib/i386/floatdixf.S b/compiler-rt/lib/i386/floatdixf.S
index cd85c09..10f900e 100644
--- a/compiler-rt/lib/i386/floatdixf.S
+++ b/compiler-rt/lib/i386/floatdixf.S
@@ -16,8 +16,7 @@
 
 .text
 .align 4
-.globl ___floatdixf
-___floatdixf:
+DEFINE_COMPILERRT_FUNCTION(__floatdixf)
 #ifndef TRUST_CALLERS_USE_64_BIT_STORES
 	movd		4(%esp),	%xmm0
 	movd		8(%esp),	%xmm1
diff --git a/compiler-rt/lib/i386/floatundidf.S b/compiler-rt/lib/i386/floatundidf.S
index e38e455..6f2acdb 100644
--- a/compiler-rt/lib/i386/floatundidf.S
+++ b/compiler-rt/lib/i386/floatundidf.S
@@ -28,8 +28,7 @@
 
 .text
 .align 4
-.globl ___floatundidf
-___floatundidf:
+DEFINE_COMPILERRT_FUNCTION(__floatundidf)
 	movss	8(%esp),						%xmm1 // high 32 bits of a
 	movss	4(%esp),						%xmm0 // low 32 bits of a
 	calll	0f
diff --git a/compiler-rt/lib/i386/floatundisf.S b/compiler-rt/lib/i386/floatundisf.S
index 39f9dcf..497fa29 100644
--- a/compiler-rt/lib/i386/floatundisf.S
+++ b/compiler-rt/lib/i386/floatundisf.S
@@ -28,8 +28,7 @@
 
 .text
 .align 4
-.globl ___floatundisf
-___floatundisf:
+DEFINE_COMPILERRT_FUNCTION(__floatundisf)
 	movl		8(%esp),		%eax
 	movd		8(%esp),		%xmm1
 	movd		4(%esp),		%xmm0
@@ -65,8 +64,7 @@
 
 .text
 .align 4
-.globl ___floatundisf
-___floatundisf:
+DEFINE_COMPILERRT_FUNCTION(__floatundisf)
 	movl		8(%esp),		%eax
 	movd		8(%esp),		%xmm1
 	movd		4(%esp),		%xmm0
diff --git a/compiler-rt/lib/i386/floatundixf.S b/compiler-rt/lib/i386/floatundixf.S
index b858662..7264f3f 100644
--- a/compiler-rt/lib/i386/floatundixf.S
+++ b/compiler-rt/lib/i386/floatundixf.S
@@ -18,8 +18,7 @@
 
 .text
 .align 4
-.globl ___floatundixf
-___floatundixf:
+DEFINE_COMPILERRT_FUNCTION(__floatundixf)
 	calll	0f
 0:	popl	%eax
 	movss	8(%esp),			%xmm0	// hi 32 bits of input
diff --git a/compiler-rt/lib/i386/lshrdi3.S b/compiler-rt/lib/i386/lshrdi3.S
index fd1fae0..74937d2 100644
--- a/compiler-rt/lib/i386/lshrdi3.S
+++ b/compiler-rt/lib/i386/lshrdi3.S
@@ -17,8 +17,7 @@
 
 .text
 .align 4
-.globl ___lshrdi3
-___lshrdi3:
+DEFINE_COMPILERRT_FUNCTION(__lshrdi3)
 	movd	  12(%esp),		%xmm2	// Load count
 #ifndef TRUST_CALLERS_USE_64_BIT_STORES
 	movd	   4(%esp),		%xmm0
@@ -37,8 +36,7 @@
 
 .text
 .align 4
-.globl ___lshrdi3
-___lshrdi3:
+DEFINE_COMPILERRT_FUNCTION(__lshrdi3)
 	movl	  12(%esp),		%ecx	// Load count
 	movl	   8(%esp),		%edx	// Load high
 	movl	   4(%esp),		%eax	// Load low
diff --git a/compiler-rt/lib/i386/moddi3.S b/compiler-rt/lib/i386/moddi3.S
index bfc9651..85f5b38 100644
--- a/compiler-rt/lib/i386/moddi3.S
+++ b/compiler-rt/lib/i386/moddi3.S
@@ -21,8 +21,7 @@
 
 .text
 .align 4
-.globl ___moddi3
-___moddi3:
+DEFINE_COMPILERRT_FUNCTION(__moddi3)
 
 /* This is currently implemented by wrapping the unsigned modulus up in an absolute
    value.  This could certainly be improved upon. */
diff --git a/compiler-rt/lib/i386/muldi3.S b/compiler-rt/lib/i386/muldi3.S
index 262556a..5f99f6a 100644
--- a/compiler-rt/lib/i386/muldi3.S
+++ b/compiler-rt/lib/i386/muldi3.S
@@ -9,8 +9,7 @@
 
 .text
 .align 4
-.globl ___muldi3
-___muldi3:
+DEFINE_COMPILERRT_FUNCTION(__muldi3)
 	pushl	%ebx
 	movl  16(%esp),		%eax	// b.lo
 	movl  12(%esp),		%ecx	// a.hi
diff --git a/compiler-rt/lib/i386/udivdi3.S b/compiler-rt/lib/i386/udivdi3.S
index c1626ab..77936f8 100644
--- a/compiler-rt/lib/i386/udivdi3.S
+++ b/compiler-rt/lib/i386/udivdi3.S
@@ -20,8 +20,7 @@
 
 .text
 .align 4
-.globl ___udivdi3
-___udivdi3:
+DEFINE_COMPILERRT_FUNCTION(__udivdi3)
 
 	pushl		%ebx
 	movl	 20(%esp),			%ebx	// Find the index i of the leading bit in b.
diff --git a/compiler-rt/lib/i386/umoddi3.S b/compiler-rt/lib/i386/umoddi3.S
index 7e4f84a..3cf8aeb 100644
--- a/compiler-rt/lib/i386/umoddi3.S
+++ b/compiler-rt/lib/i386/umoddi3.S
@@ -21,8 +21,7 @@
 
 .text
 .align 4
-.globl ___umoddi3
-___umoddi3:
+DEFINE_COMPILERRT_FUNCTION(__umoddi3)
 
 	pushl		%ebx
 	movl	 20(%esp),			%ebx	// Find the index i of the leading bit in b.