aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-08-31 06:46:00 +0000
committerRui Ueyama <ruiu@google.com>2015-08-31 06:46:00 +0000
commit6b0af3c832b5e4bbd89d6c55a9ba641688e3d2ec (patch)
tree88ca36a20dddd3efd36edc6c0b5d1a6c32e1e316
parentd86bf4271c0c30a93be74cc3453ae744f6e7a544 (diff)
downloadllvm-6b0af3c832b5e4bbd89d6c55a9ba641688e3d2ec.zip
llvm-6b0af3c832b5e4bbd89d6c55a9ba641688e3d2ec.tar.gz
llvm-6b0af3c832b5e4bbd89d6c55a9ba641688e3d2ec.tar.bz2
Fix -Wcovered-switch-default warnings.
llvm-svn: 246419
-rw-r--r--lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp
index 6e8d82b..b6cdd5c 100644
--- a/lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp
@@ -55,9 +55,8 @@ uint64_t MipsLinkingContext::getBaseAddress() const {
return 0x10000000;
case MipsAbi::N64:
return 0x120000000;
- default:
- llvm_unreachable("unknown MIPS ABI flag");
}
+ llvm_unreachable("unknown MIPS ABI flag");
}
StringRef MipsLinkingContext::entrySymbolName() const {
@@ -74,9 +73,8 @@ StringRef MipsLinkingContext::getDefaultInterpreter() const {
return "/lib32/ld.so.1";
case MipsAbi::N64:
return "/lib64/ld.so.1";
- default:
- llvm_unreachable("unknown MIPS ABI flag");
}
+ llvm_unreachable("unknown MIPS ABI flag");
}
void MipsLinkingContext::addPasses(PassManager &pm) {