summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-02-07 02:50:20 +0000
committerCraig Topper <craig.topper@gmail.com>2012-02-07 02:50:20 +0000
commite55c556a247a9c0decb4e256d9e897dfc9cf841d (patch)
tree9648cb86dd2f5fb9625baa9989eca6d9b53f8bfa /llvm/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
parent0298834e46efc1db1a3f6aa156d028b6cbf63d5b (diff)
downloadbcm5719-llvm-e55c556a247a9c0decb4e256d9e897dfc9cf841d.tar.gz
bcm5719-llvm-e55c556a247a9c0decb4e256d9e897dfc9cf841d.zip
Convert assert(0) to llvm_unreachable
llvm-svn: 149961
Diffstat (limited to 'llvm/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp')
-rw-r--r--llvm/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp b/llvm/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
index 2928da40ae4..60a65bbb733 100644
--- a/llvm/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
+++ b/llvm/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
@@ -102,8 +102,6 @@ long int MBlazeELFWriterInfo::computeRelocation(unsigned SymOffset,
unsigned RelTy) const {
if (RelTy == ELF::R_MICROBLAZE_32_PCREL || ELF::R_MICROBLAZE_64_PCREL)
return SymOffset - (RelOffset + 4);
- else
- assert(0 && "computeRelocation unknown for this relocation type");
- return 0;
+ llvm_unreachable("computeRelocation unknown for this relocation type");
}
OpenPOWER on IntegriCloud