remove return statements after llvm_unreachable() as the compiler no longer warns abot missing return values

llvm-svn: 158544
This commit is contained in:
Nick Kledzik 2012-06-15 21:04:32 +00:00
parent 3d8fc90f96
commit 21f5d4d629
2 changed files with 0 additions and 13 deletions

View File

@ -74,7 +74,6 @@ Reference::Kind KindHandler_x86_64::stringToKind(StringRef str) {
.Case("subordinateLSDA", subordinateLSDA);
llvm_unreachable("invalid x86_64 Reference kind");
return 0;
}
StringRef KindHandler_x86_64::kindToString(Reference::Kind kind) {
@ -115,7 +114,6 @@ StringRef KindHandler_x86_64::kindToString(Reference::Kind kind) {
return StringRef("subordinateLSDA");
}
llvm_unreachable("invalid x86_64 Reference kind");
return StringRef();
}
bool KindHandler_x86_64::isCallSite(Kind kind) {
@ -199,7 +197,6 @@ Reference::Kind KindHandler_x86::stringToKind(StringRef str) {
.Case("lazyImmediate", lazyImmediate);
llvm_unreachable("invalid x86 Reference kind");
return 0;
}
StringRef KindHandler_x86::kindToString(Reference::Kind kind) {
@ -224,7 +221,6 @@ StringRef KindHandler_x86::kindToString(Reference::Kind kind) {
return StringRef("subordinateLSDA");
}
llvm_unreachable("invalid x86 Reference kind");
return StringRef();
}
bool KindHandler_x86::isCallSite(Kind kind) {
@ -294,7 +290,6 @@ Reference::Kind KindHandler_arm::stringToKind(StringRef str) {
.Case("subordinateLSDA", subordinateLSDA);
llvm_unreachable("invalid ARM Reference kind");
return 0;
}
StringRef KindHandler_arm::kindToString(Reference::Kind kind) {
@ -325,7 +320,6 @@ StringRef KindHandler_arm::kindToString(Reference::Kind kind) {
return StringRef("subordinateLSDA");
}
llvm_unreachable("invalid ARM Reference kind");
return StringRef();
}
bool KindHandler_arm::isCallSite(Kind kind) {

View File

@ -42,7 +42,6 @@ StringRef WriterOptionsMachO::archName() const {
return StringRef("armv7");
}
llvm_unreachable("unknown arch");
return StringRef("???");
}
uint32_t WriterOptionsMachO::cpuType() const {
@ -56,7 +55,6 @@ uint32_t WriterOptionsMachO::cpuType() const {
return mach_o::CPU_TYPE_ARM;
}
llvm_unreachable("unknown arch");
return 0;
}
uint32_t WriterOptionsMachO::cpuSubtype() const {
@ -71,7 +69,6 @@ uint32_t WriterOptionsMachO::cpuSubtype() const {
return mach_o::CPU_SUBTYPE_ARM_V7;
}
llvm_unreachable("unknown arch");
return 0;
}
uint64_t WriterOptionsMachO::pageZeroSize() const {
@ -85,7 +82,6 @@ uint64_t WriterOptionsMachO::pageZeroSize() const {
return 0;
}
llvm_unreachable("unknown outputkind");
return 0;
}
bool WriterOptionsMachO::addEntryPointLoadCommand() const {
@ -99,7 +95,6 @@ bool WriterOptionsMachO::addEntryPointLoadCommand() const {
return false;
}
llvm_unreachable("unknown outputkind");
return false;
}
bool WriterOptionsMachO::addUnixThreadLoadCommand() const {
@ -113,7 +108,6 @@ bool WriterOptionsMachO::addUnixThreadLoadCommand() const {
return false;
}
llvm_unreachable("unknown outputkind");
return false;
}
StringRef WriterOptionsMachO::entryPointName() const {
@ -136,7 +130,6 @@ StringRef WriterOptionsMachO::entryPointName() const {
return StringRef();
}
llvm_unreachable("unknown outputkind");
return StringRef();
}