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:
parent
e3a546506b
commit
577ce0d4e0
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user