[WebAssembly] Fix build failures introduced in r305769

This fixes two build failures that only occur in certain
configurations:
- error: unused function 'operator<<'
- error: control reaches end of non-void function

Differential Revision: https://reviews.llvm.org/D34382

llvm-svn: 305770
This commit is contained in:
Sam Clegg 2017-06-20 04:47:58 +00:00
parent b7787fd076
commit 7f055dee27
2 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,7 @@ struct WasmRelocationEntry {
#endif
};
inline raw_ostream &operator<<(raw_ostream &OS,
const WasmRelocationEntry &Rel) {
raw_ostream &operator<<(raw_ostream &OS, const WasmRelocationEntry &Rel) {
Rel.print(OS);
return OS;
}

View File

@ -753,6 +753,7 @@ uint64_t WasmObjectFile::getSymbolValueImpl(DataRefImpl Symb) const {
case WasmSymbol::SymbolType::DEBUG_FUNCTION_NAME:
return Sym.ElementIndex;
}
llvm_unreachable("invalid symbol type");
}
uint32_t WasmObjectFile::getSymbolAlignment(DataRefImpl Symb) const {