aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-10-18 18:22:42 +0000
committerDan Gohman <gohman@apple.com>2008-10-18 18:22:42 +0000
commitcfe43231d222ccf266c31b0d1027645d77075c24 (patch)
treec4d0d004c5cb33cedec13dc83e503ebd9d9313db
parenteb6a3eea2e71e95a2dc2075dda0a086423c8f7bf (diff)
downloadexternal_llvm-cfe43231d222ccf266c31b0d1027645d77075c24.zip
external_llvm-cfe43231d222ccf266c31b0d1027645d77075c24.tar.gz
external_llvm-cfe43231d222ccf266c31b0d1027645d77075c24.tar.bz2
Don't truncate GlobalAddress offsets to int in debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57770 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 0781940..c223a8f 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/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/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 410f615..f188374 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/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