summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2015-05-27 19:49:53 +0000
committerRenato Golin <renato.golin@linaro.org>2015-05-27 19:49:53 +0000
commit66b682ab043dac8108b44b8a7069a547bb0071ee (patch)
tree719edd5d00f3c3792a929c3f57a4eee5c57f8e6c /llvm/lib/Support
parent54da91e3e1b82bc7ebfdc90017ced5dc995ca6d6 (diff)
downloadbcm5719-llvm-66b682ab043dac8108b44b8a7069a547bb0071ee.tar.gz
bcm5719-llvm-66b682ab043dac8108b44b8a7069a547bb0071ee.zip
ARMTargetParser: Make BSD Thumb/BE armv6 work
Simple change to make arch like "thumbv6" and "armbev6" to return the correct CPU for FreeBSD and NetBSD. llvm-svn: 238353
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index a63426f8857..a1ee18809ca 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -1113,8 +1113,8 @@ const char *Triple::getARMCPUForArch(StringRef MArch) const {
switch (getOS()) {
case llvm::Triple::FreeBSD:
case llvm::Triple::NetBSD:
- // FIXME: This doesn't work on BE/thumb variants.
- if (MArch == "armv6")
+ MArch = ARMTargetParser::getCanonicalArchName(MArch);
+ if (!MArch.empty() && MArch == "v6")
return "arm1176jzf-s";
break;
case llvm::Triple::Win32:
OpenPOWER on IntegriCloud