mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
MC: Fix dumping of MCFragment values
Without this cast the "char" overload of operator<< is chosen and the values is output as an ascii rather than an integer. Differential Revision: https://reviews.llvm.org/D34486 llvm-svn: 306039
This commit is contained in:
parent
a9b2fa259f
commit
42aac12546
@ -382,7 +382,8 @@ LLVM_DUMP_METHOD void MCFragment::dump() const {
|
|||||||
}
|
}
|
||||||
case MCFragment::FT_Fill: {
|
case MCFragment::FT_Fill: {
|
||||||
const MCFillFragment *FF = cast<MCFillFragment>(this);
|
const MCFillFragment *FF = cast<MCFillFragment>(this);
|
||||||
OS << " Value:" << FF->getValue() << " Size:" << FF->getSize();
|
OS << " Value:" << static_cast<unsigned>(FF->getValue())
|
||||||
|
<< " Size:" << FF->getSize();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MCFragment::FT_Relaxable: {
|
case MCFragment::FT_Relaxable: {
|
||||||
@ -395,7 +396,8 @@ LLVM_DUMP_METHOD void MCFragment::dump() const {
|
|||||||
case MCFragment::FT_Org: {
|
case MCFragment::FT_Org: {
|
||||||
const MCOrgFragment *OF = cast<MCOrgFragment>(this);
|
const MCOrgFragment *OF = cast<MCOrgFragment>(this);
|
||||||
OS << "\n ";
|
OS << "\n ";
|
||||||
OS << " Offset:" << OF->getOffset() << " Value:" << OF->getValue();
|
OS << " Offset:" << OF->getOffset()
|
||||||
|
<< " Value:" << static_cast<unsigned>(OF->getValue());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MCFragment::FT_Dwarf: {
|
case MCFragment::FT_Dwarf: {
|
||||||
|
Loading…
Reference in New Issue
Block a user