[PATCH] D43005: [ARM] Error out on .arm assembler directives on windows
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 21 00:57:11 PDT 2018
mstorsjo updated this revision to Diff 139257.
mstorsjo added a comment.
Adding "+noarm" to ARMArchFeature, as suggested, instead of toggling bits later.
https://reviews.llvm.org/D43005
Files:
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
test/MC/ARM/arm-thumb-cpus.s
Index: test/MC/ARM/arm-thumb-cpus.s
===================================================================
--- test/MC/ARM/arm-thumb-cpus.s
+++ test/MC/ARM/arm-thumb-cpus.s
@@ -19,6 +19,9 @@
@ RUN: not llvm-mc -show-encoding -triple=armv6sm-eabi < %s 2>&1 \
@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
+@ RUN: not llvm-mc -show-encoding -triple=thumbv7-win32-gnu < %s 2>&1 \
+@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
+
@ Make sure correct diagnostics are given for CPUs without support for
@ one or other of the execution states.
.thumb
Index: lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
===================================================================
--- lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
+++ lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
@@ -153,6 +153,13 @@
ARMArchFeature += ",+nacl-trap";
}
+ if (TT.isOSWindows()) {
+ if (ARMArchFeature.empty())
+ ARMArchFeature = "+noarm";
+ else
+ ARMArchFeature += ",+noarm";
+ }
+
return ARMArchFeature;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43005.139257.patch
Type: text/x-patch
Size: 1063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180321/13f9a57b/attachment.bin>
More information about the llvm-commits
mailing list