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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305770
91177308-0d34-0410-b5e6-
96231b3b80d8
#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;
}
case WasmSymbol::SymbolType::DEBUG_FUNCTION_NAME:
return Sym.ElementIndex;
}
+ llvm_unreachable("invalid symbol type");
}
uint32_t WasmObjectFile::getSymbolAlignment(DataRefImpl Symb) const {