rengolin added a comment. This change seems to have nothing to do with adding core support but exposing features from CPU names.
If this was required to "support" the new cores in Clang, why wasn't it needed before? If this is a new, more generic way, of getting support, shouldn't you remove the specialist code that already does that for all other cores? cheers, --renato ================ Comment at: lib/Driver/ToolChains/Arch/ARM.cpp:90 +static bool DecodeARMFeaturesFromCPU(const Driver &D, StringRef CPU, + std::vector<StringRef> &Features) { ---------------- Why are you returning bool if you're not using the result? ================ Comment at: lib/Driver/ToolChains/Arch/ARM.cpp:348 Args.MakeArgString((F.second ? "+" : "-") + F.first())); + } else if (!CPUName.empty() && CPUName != "generic") { + DecodeARMFeaturesFromCPU(D, CPUName, Features); ---------------- Isn't this conditional redundant with what the function does? https://reviews.llvm.org/D36731 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits