summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2015-05-08 12:52:02 +0000
committerJohn Brawn <john.brawn@arm.com>2015-05-08 12:52:02 +0000
commit50ed9470dcd867c3341991bdc3fe704db43aae4d (patch)
treea12ed06ca5854c8ebdcb667dc9180ad3a13574a4 /clang/lib/Basic/Targets.cpp
parent6c253006b8961247e7406592675d8787d761dce1 (diff)
downloadbcm5719-llvm-50ed9470dcd867c3341991bdc3fe704db43aae4d.tar.gz
bcm5719-llvm-50ed9470dcd867c3341991bdc3fe704db43aae4d.zip
[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/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud