Simplify ARMTargetParser::getArchSynonym
authorArtyom Skrobov <Artyom.Skrobov@arm.com>
Thu, 4 Jun 2015 21:26:58 +0000 (21:26 +0000)
committerArtyom Skrobov <Artyom.Skrobov@arm.com>
Thu, 4 Jun 2015 21:26:58 +0000 (21:26 +0000)
commit6782fc61caa81090501163413d7ff3dcadda8527
treead7f6354539331fe9342a35a30709d5a0dae8625
parent083f0122f0398137c45659518e9be00748d24b2d
Simplify ARMTargetParser::getArchSynonym

Summary:
1) The only caller, ARMTargetParser::parseArch, uses the results for an "endswith" test; so, including the "arm" prefix into the result is unnecessary.
2) 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.

Reviewers: rengolin

Reviewed By: rengolin

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10249

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239099 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/TargetParser.cpp
lib/Support/Triple.cpp