[PATCH] [ARM] Reject invalid -march values

John Brawn john.brawn at arm.com
Fri May 8 04:23:27 PDT 2015


Hi rengolin,

Restructure Triple::getARMCPUForArch so that invalid values will return nullptr, while retaining the behaviour that an argument specifying no particular architecture version will give a default CPU. This will be used by clang to give an error on invalid -march values.

Also restructure the extraction of the architecture version from the MArch string a little to hopefully make what it's doing clearer.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9599

Files:
  lib/Support/Triple.cpp
  unittests/ADT/TripleTest.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9599.25302.patch
Type: text/x-patch
Size: 4549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150508/a2a72c3c/attachment.bin>


More information about the llvm-commits mailing list