summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ArchiveWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-02-22 19:42:14 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-02-22 19:42:14 +0000
commitf133ccbd8dc48f9f87a88aa3c27b41eeca71cb00 (patch)
treea57ba051d6d361e725eb37283f11491200785cf5 /llvm/lib/Object/ArchiveWriter.cpp
parente8a0f5ef3b4b78c77aec785f01541679f8002bc7 (diff)
downloadbcm5719-llvm-f133ccbd8dc48f9f87a88aa3c27b41eeca71cb00.tar.gz
bcm5719-llvm-f133ccbd8dc48f9f87a88aa3c27b41eeca71cb00.zip
Move llvm_unreachable out of switch.
This should make gcc happy and still produce a clang warning if we add another value to the enum. llvm-svn: 295865
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
-rw-r--r--llvm/lib/Object/ArchiveWriter.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Object/ArchiveWriter.cpp b/llvm/lib/Object/ArchiveWriter.cpp
index 11cd72fa69d..83fbf2f5854 100644
--- a/llvm/lib/Object/ArchiveWriter.cpp
+++ b/llvm/lib/Object/ArchiveWriter.cpp
@@ -129,9 +129,12 @@ static bool isBSDLike(object::Archive::Kind Kind) {
case object::Archive::K_BSD:
case object::Archive::K_DARWIN:
return true;
- default:
- llvm_unreachable("not supported for writting");
+ case object::Archive::K_MIPS64:
+ case object::Archive::K_DARWIN64:
+ case object::Archive::K_COFF:
+ break;
}
+ llvm_unreachable("not supported for writting");
}
static void print32(raw_ostream &Out, object::Archive::Kind Kind,
OpenPOWER on IntegriCloud