[llvm] r331317 - [WebAssembly] Fix debug printing of symbol types

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Tue May 1 16:28:28 PDT 2018


Author: sbc
Date: Tue May  1 16:28:27 2018
New Revision: 331317

URL: http://llvm.org/viewvc/llvm-project?rev=331317&view=rev
Log:
[WebAssembly] Fix debug printing of symbol types

The Info.Kind field is a uint8_t which the OS was
trying to print as an ascii char.

Modified:
    llvm/trunk/include/llvm/Object/Wasm.h

Modified: llvm/trunk/include/llvm/Object/Wasm.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/Wasm.h?rev=331317&r1=331316&r2=331317&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/Wasm.h (original)
+++ llvm/trunk/include/llvm/Object/Wasm.h Tue May  1 16:28:27 2018
@@ -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;




More information about the llvm-commits mailing list