- The only caller, ARMTargetParser::parseArch, uses the results for an "endswith" test; so, including the "arm" prefix into the result is unnecessary.
- Most ARMTargetParser::parseArch callers pass it the output from ARMTargetParser::getCanonicalArchName; so, make this behaviour the default. Then, including the "arm" prefix into the cases is unnecessary.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
There are also lots of places that are calling parseArch(getCanonical()), can you simplify them as well?
Some of them are in Clang...
lib/Support/TargetParser.cpp | ||
---|---|---|
371 ↗ | (On Diff #27133) | The reason why I didn't do this initially is because I was calling parseArch() inside getCanonicalArchName(). Now this is safe, thanks for fixing this. |