summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorDiogo N. Sampaio <diogo.sampaio@arm.com>2019-05-09 10:24:36 +0000
committerDiogo N. Sampaio <diogo.sampaio@arm.com>2019-05-09 10:24:36 +0000
commit543913c3b41f7d8dcede4f446ffcd2dce496a084 (patch)
tree12e81bf60d8abbd1e87b0f6ea985da167c6b45d4 /clang/lib/Frontend/InitPreprocessor.cpp
parent3cdf8981054bf7b607aed1b6c921341516a94174 (diff)
downloadbcm5719-llvm-543913c3b41f7d8dcede4f446ffcd2dce496a084.tar.gz
bcm5719-llvm-543913c3b41f7d8dcede4f446ffcd2dce496a084.zip
[ARM] Fix the extensions implied by a cpu name
Summary: When using `clang -mcpu=CPUNAME+FEATURELIST`, the implied features defined by CPUNAME are not obtained, as the entire string is passed. This fixes that by spiting the cpuname string in the first `+`, if any. For example, when using ```clang -### --target=arm-arm-none-eabi -march=armv7-a -mcpu=cortex-a8+nocrc``` the intrinsic ```"target-feature" "+dsp"``` implied by `cortex-a8` is missing. Reviewers: keith.walker.arm, DavidSpickett, carwil Reviewed By: DavidSpickett Subscribers: javed.absar, kristof.beyls, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61668 llvm-svn: 360324
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud