ARM IAS: support .object_arch
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 30 Jan 2014 04:46:41 +0000 (04:46 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 30 Jan 2014 04:46:41 +0000 (04:46 +0000)
commit09f38a0ef13bf542f7b3f1862d718e33e7de587b
treec82a746a55e2173bda6e65335d953fcaf7d13eab
parent459c9497772f7d4e8567233a99f126198ec93b68
ARM IAS: support .object_arch

The .object_arch directive indicates an alternative architecture to be specified
in the object file.  The directive does *not* effect the enabled feature bits
for the object file generation.  This is particularly useful when the code
performs runtime detection and would like to indicate a lower architecture as
the requirements than the actual instructions used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200451 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCStreamer.h
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
test/MC/ARM/directive-object_arch-2.s [new file with mode: 0644]
test/MC/ARM/directive-object_arch-3.s [new file with mode: 0644]
test/MC/ARM/directive-object_arch-diagnostics.s [new file with mode: 0644]
test/MC/ARM/directive-object_arch.s [new file with mode: 0644]