aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-09-21 05:07:44 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-09-21 05:07:44 +0000
commit9682c8553e338fee05ad1c83299befcb7a77c7aa (patch)
tree190c0821ca7a25ffb10a73eab9cca73eeab548e6
parent84f3816f853c373629e3a815278bcc81ca5de917 (diff)
downloadllvm-9682c8553e338fee05ad1c83299befcb7a77c7aa.zip
llvm-9682c8553e338fee05ad1c83299befcb7a77c7aa.tar.gz
llvm-9682c8553e338fee05ad1c83299befcb7a77c7aa.tar.bz2
Modified per David Blakie suggestion.
llvm-svn: 218198
-rw-r--r--lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp3
-rw-r--r--lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp4
2 files changed, 2 insertions, 5 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
index e2b2b65..f40c9e7 100644
--- a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
@@ -643,9 +643,8 @@ bool MachOLinkingContext::exportSymbolNamed(StringRef sym) const {
return _exportedSymbols.count(sym);
case ExportMode::blackList:
return !_exportedSymbols.count(sym);
- default:
- llvm_unreachable("_exportMode unknown enum value");
}
+ llvm_unreachable("_exportMode unknown enum value");
}
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
index 3e355da..790559f 100644
--- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
+++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
@@ -719,10 +719,8 @@ std::error_code Util::getSymbolTableRegion(const DefinedAtom* atom,
return std::error_code();
}
break;
- default:
- llvm_unreachable("atom->scope() unknown enum value");
- return std::error_code();
}
+ llvm_unreachable("atom->scope() unknown enum value");
}
std::error_code Util::addSymbols(const lld::File &atomFile,