[ARM] Add hardware build attributes in assembler
authorOliver Stannard <oliver.stannard@arm.com>
Tue, 18 Apr 2017 13:21:05 +0000 (13:21 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Tue, 18 Apr 2017 13:21:05 +0000 (13:21 +0000)
commit692dc54b0ddece06fd1c78aee32ce60719f8da20
treeb1ac22eed98b6c96972d87fd2513506542151258
parent233310f3e602bdc076a5a82665517df8ce5aae94
[ARM] Add hardware build attributes in assembler

This passes an option to the ARM assembly parser to emit build
attributes for the hardware selected by command line options, when
assembling an assembly file.

This is not enabled for C/C++, as this would result in duplicate build
attribute directives being emitted in each inline assembly block, when
emitting assembly.

This also adds an option to allow disabling this behaviour for assembly
files, for users who were relying on the old behaviour.

Differential revision: https://reviews.llvm.org/D31813

llvm-svn: 300550
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/arm-default-build-attributes.s [new file with mode: 0644]