diff options
author | John Brawn <john.brawn@arm.com> | 2015-05-08 12:52:02 +0000 |
---|---|---|
committer | John Brawn <john.brawn@arm.com> | 2015-05-08 12:52:02 +0000 |
commit | 50ed9470dcd867c3341991bdc3fe704db43aae4d (patch) | |
tree | a12ed06ca5854c8ebdcb667dc9180ad3a13574a4 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 6c253006b8961247e7406592675d8787d761dce1 (diff) | |
download | llvm-50ed9470dcd867c3341991bdc3fe704db43aae4d.zip llvm-50ed9470dcd867c3341991bdc3fe704db43aae4d.tar.gz llvm-50ed9470dcd867c3341991bdc3fe704db43aae4d.tar.bz2 |
[ARM] Reject invalid -march values
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.
Differential Revision: http://reviews.llvm.org/D9599
llvm-svn: 236845
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions