forked from OSchip/llvm-project
Don't truncate GlobalAddress offsets to int in debug output.
llvm-svn: 57770
This commit is contained in:
parent
354d278518
commit
727a94063c
|
@ -5318,7 +5318,7 @@ void SDNode::print(raw_ostream &OS, const SelectionDAG *G) const {
|
|||
}
|
||||
} else if (const GlobalAddressSDNode *GADN =
|
||||
dyn_cast<GlobalAddressSDNode>(this)) {
|
||||
int offset = GADN->getOffset();
|
||||
int64_t offset = GADN->getOffset();
|
||||
OS << '<';
|
||||
WriteAsOperand(OS, GADN->getGlobal());
|
||||
OS << '>';
|
||||
|
|
|
@ -127,7 +127,7 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
|
|||
} else if (const GlobalAddressSDNode *GADN =
|
||||
dyn_cast<GlobalAddressSDNode>(Node)) {
|
||||
Op += ": " + GADN->getGlobal()->getName();
|
||||
if (int Offset = GADN->getOffset()) {
|
||||
if (int64_t Offset = GADN->getOffset()) {
|
||||
if (Offset > 0)
|
||||
Op += "+" + itostr(Offset);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue