]> granicus.if.org Git - clang/commit
[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)
commitea363d3db25fcfc735943abe5def1068d0dec394
tree5f4f193ba63f01c0c60f72dde71c4ba3335c9047
parent91aca438d20ab707147f7efb78f364ea87417c30
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300550 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Driver/ToolChains/Clang.cpp
test/Driver/arm-default-build-attributes.s [new file with mode: 0644]