aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Hexagon/HexagonSubtarget.cpp
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2012-07-19 18:24:50 +0000
committerSebastian Pop <spop@codeaurora.org>2012-07-19 18:24:50 +0000
commite88ed0934637a21f02ef5dc8b01075c0f8870d11 (patch)
treee0ec614abdee7f2078530006cb2ec5bc5641dc2d /lib/Target/Hexagon/HexagonSubtarget.cpp
parent55c9ecba47953aa8a4a1baffef81461aee660e9a (diff)
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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Hexagon/HexagonSubtarget.cpp')
-rw-r--r--lib/Target/Hexagon/HexagonSubtarget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/Hexagon/HexagonSubtarget.cpp b/lib/Target/Hexagon/HexagonSubtarget.cpp
index ce81a78bf9..5d087db1bd 100644
--- a/lib/Target/Hexagon/HexagonSubtarget.cpp
+++ b/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.