summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2014-10-04 20:11:10 +0000
committerBob Wilson <bob.wilson@apple.com>2014-10-04 20:11:10 +0000
commit115547464e7c8fc0b2a297fe2b313a7974d670bd (patch)
treee80dfafc6de48f715994fd8e69737d1011086cf5 /compiler-rt/lib/builtins
parent66304c2262b3efcc681e70c8ef39824cf7237686 (diff)
downloadbcm5719-llvm-115547464e7c8fc0b2a297fe2b313a7974d670bd.tar.gz
bcm5719-llvm-115547464e7c8fc0b2a297fe2b313a7974d670bd.zip
Try harder to fix ARM/Linux after r219040.
llvm-svn: 219066
Diffstat (limited to 'compiler-rt/lib/builtins')
-rw-r--r--compiler-rt/lib/builtins/assembly.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h
index eb7de8a5124..2828b156a55 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -31,16 +31,21 @@
#if __ARM_ARCH_ISA_THUMB == 2
#define THUMB_FUNC .thumb_func
#endif
+
#elif defined(__ELF__)
+
#define HIDDEN(name) .hidden name
#define LOCAL_LABEL(name) .L_##name
+#define THUMB_FUNC
#define FILE_LEVEL_DIRECTIVE
#if defined(__arm__)
#define SYMBOL_IS_FUNC(name) .type name,%function
#else
#define SYMBOL_IS_FUNC(name) .type name,@function
#endif
-#else
+
+#else // !__APPLE__ && !__ELF__
+
#define HIDDEN_DIRECTIVE(name)
#define LOCAL_LABEL(name) .L ## name
#define SYMBOL_IS_FUNC(name) \
OpenPOWER on IntegriCloud