diff options
author | Sebastian Pop <spop@codeaurora.org> | 2012-07-19 18:24:50 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2012-07-19 18:24:50 +0000 |
commit | 221e07e140aef4e284489dec8b8417a117540b6c (patch) | |
tree | 45fd1e8a2e268ea015255c37f424467bd0de4d37 /llvm/lib | |
parent | 3e0ec58c09eb4d41bc00f63de2a8112d4168faf4 (diff) | |
download | bcm5719-llvm-221e07e140aef4e284489dec8b8417a117540b6c.tar.gz bcm5719-llvm-221e07e140aef4e284489dec8b8417a117540b6c.zip |
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
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonSubtarget.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonSubtarget.cpp b/llvm/lib/Target/Hexagon/HexagonSubtarget.cpp index ce81a78bf94..5d087db1bdb 100644 --- a/llvm/lib/Target/Hexagon/HexagonSubtarget.cpp +++ b/llvm/lib/Target/Hexagon/HexagonSubtarget.cpp @@ -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. |