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)
commit7e6b5955d4951954b8b9108935e8badcf5421363
treeec435289994c76c9dcf6d874140b6c2670f6800c
parente9458655fe8ced6f309d87e4de683ac3f4d520cf
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.

llvm-svn: 223147
llvm/include/llvm/MC/MCSubtargetInfo.h
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/test/MC/ARM/cpu-test.s [new file with mode: 0644]