diff options
| author | Oliver Stannard <oliver.stannard@arm.com> | 2017-11-29 10:12:15 +0000 |
|---|---|---|
| committer | Oliver Stannard <oliver.stannard@arm.com> | 2017-11-29 10:12:15 +0000 |
| commit | 9ea2eaeb505a5bc6dc8bd45a6dce3155c87f1214 (patch) | |
| tree | 8f7b43f64a451e7f7e43ebc65065e47c1f7e7199 /llvm/lib/Target/ARM/MCTargetDesc | |
| parent | d4df744434100b9322dc2ed049192502b0f1f5bd (diff) | |
| download | bcm5719-llvm-9ea2eaeb505a5bc6dc8bd45a6dce3155c87f1214.tar.gz bcm5719-llvm-9ea2eaeb505a5bc6dc8bd45a6dce3155c87f1214.zip | |
[ARM] Add support for armv7e-m to the .arch directive
This will allow compilation of assembly files targeting armv7e-m without having
to specify the Tag_CPU_arch attribute as a workaround.
Differential revision: https://reviews.llvm.org/D40370
Patch by Ian Tessier!
llvm-svn: 319303
Diffstat (limited to 'llvm/lib/Target/ARM/MCTargetDesc')
| -rw-r--r-- | llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp index 8cfa18f58b6..d465da1a7bb 100644 --- a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp +++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp @@ -847,6 +847,7 @@ void ARMTargetELFStreamer::emitArchDefaultAttributes() { setAttributeItem(THUMB_ISA_use, AllowThumb32, false); break; + case ARM::ArchKind::ARMV7EM: case ARM::ArchKind::ARMV7M: setAttributeItem(CPU_arch_profile, MicroControllerProfile, false); setAttributeItem(THUMB_ISA_use, AllowThumb32, false); |

