[llvm-commits] [llvm] r57770 - in /llvm/trunk/lib/CodeGen/SelectionDAG: SelectionDAG.cpp SelectionDAGPrinter.cpp
Dan Gohman
gohman at apple.com
Sat Oct 18 11:22:42 PDT 2008
Author: djg
Date: Sat Oct 18 13:22:42 2008
New Revision: 57770
URL: http://llvm.org/viewvc/llvm-project?rev=57770&view=rev
Log:
Don't truncate GlobalAddress offsets to int in debug output.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=57770&r1=57769&r2=57770&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Sat Oct 18 13:22:42 2008
@@ -5318,7 +5318,7 @@
}
} else if (const GlobalAddressSDNode *GADN =
dyn_cast<GlobalAddressSDNode>(this)) {
- int offset = GADN->getOffset();
+ int64_t offset = GADN->getOffset();
OS << '<';
WriteAsOperand(OS, GADN->getGlobal());
OS << '>';
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp?rev=57770&r1=57769&r2=57770&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Sat Oct 18 13:22:42 2008
@@ -127,7 +127,7 @@
} 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
More information about the llvm-commits
mailing list