projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aa5dcd
)
[WebAssembly] Fix debug printing of symbol types
author
Sam Clegg
<sbc@chromium.org>
Tue, 1 May 2018 23:28:27 +0000
(23:28 +0000)
committer
Sam 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
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Object/Wasm.h
b/llvm/include/llvm/Object/Wasm.h
index
1b2c3f3
..
b65c16f
100644
(file)
--- a/
llvm/include/llvm/Object/Wasm.h
+++ b/
llvm/include/llvm/Object/Wasm.h
@@
-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;