[ARM] Generate ABI_optimization_goals build attribute, as described in the ARM ARM.
authorArtyom Skrobov <Artyom.Skrobov@arm.com>
Mon, 7 Dec 2015 14:22:39 +0000 (14:22 +0000)
committerArtyom Skrobov <Artyom.Skrobov@arm.com>
Mon, 7 Dec 2015 14:22:39 +0000 (14:22 +0000)
commitfad998fc360e9d7140354e14ef71de8426446ead
tree701c2f633b3cbdd3803bda63c9cedfd51756aa76
parent0284291aa161a26a07c1da135ad34596672dd79a
[ARM] Generate ABI_optimization_goals build attribute, as described in the ARM ARM.

Summary: This reverts r254234, and adds a simple fix for the annoying case of use-after-free.

Reviewers: rengolin

Subscribers: aemerson, llvm-commits, rengolin

Differential Revision: http://reviews.llvm.org/D15236

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254912 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/ARMAsmPrinter.h
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
test/CodeGen/ARM/build-attributes-optimization-minsize.ll [new file with mode: 0644]
test/CodeGen/ARM/build-attributes-optimization-mixed.ll [new file with mode: 0644]
test/CodeGen/ARM/build-attributes-optimization-optnone.ll [new file with mode: 0644]
test/CodeGen/ARM/build-attributes-optimization-optsize.ll [new file with mode: 0644]
test/CodeGen/ARM/build-attributes-optimization.ll [new file with mode: 0644]
test/MC/ARM/data-in-code.ll