Fix release build breakage

This function was added in rL331220 but wasn't
testing in release configurations.

llvm-svn: 331320
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp
index b3f3a34..ff1ea78 100644
--- a/llvm/lib/MC/WasmObjectWriter.cpp
+++ b/llvm/lib/MC/WasmObjectWriter.cpp
@@ -37,6 +37,7 @@
 
 #define DEBUG_TYPE "mc"
 
+#if !defined(NDEBUG)
 static std::string toString(wasm::WasmSymbolType type) {
   switch (type) {
   case wasm::WASM_SYMBOL_TYPE_FUNCTION:
@@ -50,6 +51,7 @@
   }
   llvm_unreachable("unknown symbol type");
 }
+#endif
 
 static std::string relocTypetoString(uint32_t type) {
   switch (type) {