[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Fri Jan 12 10:15:24 PST 2007
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.133 -> 1.134
---
Log message:
Simplify code
---
Diffs of the changes: (+1 -4)
AsmPrinter.cpp | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.133 llvm/lib/CodeGen/AsmPrinter.cpp:1.134
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.133 Fri Jan 12 01:05:13 2007
+++ llvm/lib/CodeGen/AsmPrinter.cpp Fri Jan 12 12:15:09 2007
@@ -389,10 +389,7 @@
if (CV->isNullValue() || isa<UndefValue>(CV))
O << "0";
else if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
- if (CI->getType() == Type::Int1Ty) {
- assert(CI->getZExtValue());
- O << "1";
- } else O << CI->getSExtValue();
+ O << CI->getZExtValue();
} 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