[llvm-commits] [SignlessTypes] CVS: llvm/lib/Target/X86/X86IntelAsmPrinter.cpp

Reid Spencer reid at x10sys.com
Thu Oct 19 17:35:18 PDT 2006



Changes in directory llvm/lib/Target/X86:

X86IntelAsmPrinter.cpp updated: 1.60 -> 1.60.2.1
---
Log message:

Make some simplifications for ConstantInt:
1. Get rid of getRawValue, replace with getZExtValue
2. Single constructor (uint64_t) and get method (int64_t)
3. Canonicalize the constant to a zero extended unsigned 64-bit integer when
   it is created.
4. Adjust getZExtValue() to be a do-nothing (just returns the already
   canonicalized value).
5. Compensate for above changes everywhere else.


---
Diffs of the changes:  (+1 -1)

 X86IntelAsmPrinter.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86IntelAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.60 llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.60.2.1
--- llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.60	Wed Oct  4 22:01:21 2006
+++ llvm/lib/Target/X86/X86IntelAsmPrinter.cpp	Thu Oct 19 19:34:44 2006
@@ -474,7 +474,7 @@
     unsigned len = 0;
     bool inString = false;
     for (unsigned i = 0; i < NumElts; i++) {
-      int n = cast<ConstantInt>(CVA->getOperand(i))->getRawValue() & 255;
+      int n = cast<ConstantInt>(CVA->getOperand(i))->getZExtValue() & 255;
       if (len == 0)
         O << "\tdb ";
 






More information about the llvm-commits mailing list