1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[ARM] Error out on .arm assembler directives on windows

Windows on arm is thumb only.

Differential Revision: https://reviews.llvm.org/D43005

llvm-svn: 328298
This commit is contained in:
Martin Storsjo 2018-03-23 09:10:03 +00:00
parent e3a546506b
commit 577ce0d4e0
2 changed files with 10 additions and 0 deletions

View File

@ -153,6 +153,13 @@ std::string ARM_MC::ParseARMTriple(const Triple &TT, StringRef CPU) {
ARMArchFeature += ",+nacl-trap";
}
if (TT.isOSWindows()) {
if (ARMArchFeature.empty())
ARMArchFeature = "+noarm";
else
ARMArchFeature += ",+noarm";
}
return ARMArchFeature;
}

View File

@ -17,6 +17,9 @@
@ RUN: | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
@ 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