diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-18 18:22:42 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-18 18:22:42 +0000 |
commit | 727a94063c98b6fdd316642d5c60887f894852fe (patch) | |
tree | af9fdb4bc211623d110db847bc31067b46250e06 /llvm/lib/CodeGen | |
parent | 354d278518a6e111d9b5fc46fcb5a903a318a3f5 (diff) | |
download | bcm5719-llvm-727a94063c98b6fdd316642d5c60887f894852fe.tar.gz bcm5719-llvm-727a94063c98b6fdd316642d5c60887f894852fe.zip |
Don't truncate GlobalAddress offsets to int in debug output.
llvm-svn: 57770
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 07819404e14..c223a8f6472 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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 << '>'; diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 410f6157358..f1883744129 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -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 |