[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Reid Spencer
reid at x10sys.com
Thu Dec 21 11:04:39 PST 2006
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.127 -> 1.128
---
Log message:
Just print integer constants as signed values. The actual signedness
doesn't matter as it is determined in the way the constant is used.
---
Diffs of the changes: (+1 -7)
AsmPrinter.cpp | 8 +-------
1 files changed, 1 insertion(+), 7 deletions(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.127 llvm/lib/CodeGen/AsmPrinter.cpp:1.128
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.127 Tue Dec 19 15:04:20 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp Thu Dec 21 13:04:23 2006
@@ -392,13 +392,7 @@
assert(CB->getValue());
O << "1";
} else if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
- if (CI->getType()->isSigned()) {
- if (((CI->getSExtValue() << 32) >> 32) == CI->getSExtValue())
- O << CI->getSExtValue();
- else
- O << (uint64_t)CI->getSExtValue();
- } else
- O << CI->getZExtValue();
+ O << CI->getSExtValue();
} else if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) {
// This is a constant address for a global variable or function. Use the
// name of the variable or function as the address value, possibly
More information about the llvm-commits
mailing list