[WebAssembly] Fix debug printing of symbol types
authorSam Clegg <sbc@chromium.org>
Tue, 1 May 2018 23:28:27 +0000 (23:28 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 1 May 2018 23:28:27 +0000 (23:28 +0000)
The Info.Kind field is a uint8_t which the OS was
trying to print as an ascii char.

llvm-svn: 331317

llvm/include/llvm/Object/Wasm.h

index 1b2c3f3..b65c16f 100644 (file)
@@ -89,7 +89,7 @@ public:
   }
 
   void print(raw_ostream &Out) const {
-    Out << "Name=" << Info.Name << ", Kind=" << Info.Kind
+    Out << "Name=" << Info.Name << ", Kind=" << int(Info.Kind)
         << ", Flags=" << Info.Flags;
     if (!isTypeData()) {
       Out << ", ElemIndex=" << Info.ElementIndex;