1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

default to use -mv4 when no version of Hexagon has been specified

This fixes a bunch of make check failures of the form:

Unknown Architecture Version.
UNREACHABLE executed at ../lib/Target/Hexagon/HexagonSubtarget.cpp:60!

llvm-svn: 160518
This commit is contained in:
Sebastian Pop 2012-07-19 18:24:50 +00:00
parent 324d91f181
commit 07b782daeb

View File

@ -55,7 +55,11 @@ HexagonSubtarget::HexagonSubtarget(StringRef TT, StringRef CPU, StringRef FS):
case HexagonSubtarget::V5:
break;
default:
llvm_unreachable("Unknown Architecture Version.");
// If the programmer has not specified a Hexagon version, default
// to -mv4.
CPUString = "hexagonv4";
HexagonArchVersion = HexagonSubtarget::V4;
break;
}
// Initialize scheduling itinerary for the specified CPU.