[LLD][WASM] Handle WASM_SYMBOL_TYPE_SECTION in toString().

Fixes build. If this is not the desired solution, please revert.
WasmSymbolType was changed in rL330982 / D44184

llvm-svn: 330984
This commit is contained in:
Roman Lebedev 2018-04-26 20:00:11 +00:00
parent d4d892ff9f
commit d338222a8c
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ std::string lld::toString(WasmSymbolType Type) {
return "Data";
case llvm::wasm::WASM_SYMBOL_TYPE_GLOBAL:
return "Global";
case llvm::wasm::WASM_SYMBOL_TYPE_SECTION:
return "Section";
}
llvm_unreachable("invalid symbol type");
}