From d338222a8cefe87d8e97a717935bd614e1fabbb4 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Thu, 26 Apr 2018 20:00:11 +0000 Subject: [PATCH] [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 --- lld/wasm/Symbols.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lld/wasm/Symbols.cpp b/lld/wasm/Symbols.cpp index d20a590..87e95be 100644 --- a/lld/wasm/Symbols.cpp +++ b/lld/wasm/Symbols.cpp @@ -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"); } -- 2.7.4