[ARM] In thumb mode, emit directive ".code 16" before file level inline
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 25 Jul 2014 05:12:49 +0000 (05:12 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 25 Jul 2014 05:12:49 +0000 (05:12 +0000)
commit642c8bef1931cfc05f6d23a9b25d7d182cc48c01
treebab17b20556c6092365c467180734ef1fbb03760
parentb64f8426f279dba313e6ee26edbefd7bc04e61bf
[ARM] In thumb mode, emit directive ".code 16" before file level inline
assembly instructions.

This is necessary to ensure ARM assembler switches to Thumb mode before it
starts assembling the file level inline assembly instructions at the beginning
of a .s file.

<rdar://problem/17757232>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213924 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMAsmPrinter.cpp
test/CodeGen/ARM/inlineasm-global.ll [new file with mode: 0644]