[Builtins] ARM: Fix assembling files in thumb mode.
authorManoj Gupta <manojgupta@google.com>
Wed, 27 Sep 2017 09:33:14 +0000 (09:33 +0000)
committerManoj Gupta <manojgupta@google.com>
Wed, 27 Sep 2017 09:33:14 +0000 (09:33 +0000)
commit6992817a0e2d3413eeb29ac5f4de1148625681c1
tree98805b9633c1fa23e977bb97f4180708e286a90c
parent9c277321e3dcc9fe979e2407320a902a2b7cf513
[Builtins] ARM: Fix assembling files in thumb mode.

Summary:
clang does not assemble files in thumb mode unless .thumb declaration
is present. Add .thumb/.arm decl to _FUNCTION macros to ensure that
files are assembled correctly.

Fixes PR 34715.

Reviewers: compnerd, peter.smith, srhines, weimingz, rengolin

Reviewed By: compnerd

Subscribers: aemerson, javed.absar, llvm-commits, kristof.beyls

Differential Revision: https://reviews.llvm.org/D38227

llvm-svn: 314285
compiler-rt/lib/builtins/assembly.h