[PATCH] D16139: [MIPS] initFeatureMap() to handle empty string argument

Bhushan Attarde via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 22 01:43:09 PST 2016


bhushan added a comment.

> I'm guessing it's something to do with the 'Features[CPU] = true' line.


Yes.
`Features[CPU] = true` enables a feature given by CPU string. (This gets translated into "+CPU").
When CPU string is empty, this gets translated into "+" (i.e. with empty feature name).

This results into a warning `'+' is not a recognized feature for this target (ignoring feature)`.


Repository:
  rL LLVM

http://reviews.llvm.org/D16139





More information about the cfe-commits mailing list