]> granicus.if.org Git - llvm/commit
Introduce CPUStringIsValid() into MCSubtargetInfo and use it for ARM .cpu parsing.
authorRoman Divacky <rdivacky@freebsd.org>
Tue, 2 Dec 2014 20:03:22 +0000 (20:03 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Tue, 2 Dec 2014 20:03:22 +0000 (20:03 +0000)
commit2664ea938ffdd15261876917640a5d70f1f30945
treeb7d63b8c0c6e52c8485d98dbd467cddcf53d590b
parent30892329d4eace7ccbed16749f9804f3261aa4a9
Introduce CPUStringIsValid() into MCSubtargetInfo and use it for ARM .cpu parsing.

Previously .cpu directive in ARM assembler didnt switch to the new CPU and
therefore acted as a nop. This implemented real action for .cpu and eg.
allows to assembler FreeBSD kernel with -integrated-as.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223147 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSubtargetInfo.h
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/cpu-test.s [new file with mode: 0644]