[lld] r218198 - Modified per David Blakie suggestion.
Yaron Keren
yaron.keren at gmail.com
Sat Sep 20 22:07:45 PDT 2014
Author: yrnkrn
Date: Sun Sep 21 00:07:44 2014
New Revision: 218198
URL: http://llvm.org/viewvc/llvm-project?rev=218198&view=rev
Log:
Modified per David Blakie suggestion.
Modified:
lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
Modified: lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp?rev=218198&r1=218197&r2=218198&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp Sun Sep 21 00:07:44 2014
@@ -643,9 +643,8 @@ bool MachOLinkingContext::exportSymbolNa
return _exportedSymbols.count(sym);
case ExportMode::blackList:
return !_exportedSymbols.count(sym);
- default:
- llvm_unreachable("_exportMode unknown enum value");
}
+ llvm_unreachable("_exportMode unknown enum value");
}
Modified: lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp?rev=218198&r1=218197&r2=218198&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp Sun Sep 21 00:07:44 2014
@@ -719,10 +719,8 @@ std::error_code Util::getSymbolTableRegi
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,
More information about the llvm-commits
mailing list