[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp

Reid Spencer reid at x10sys.com
Thu Jan 11 10:22:22 PST 2007



Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.74 -> 1.75
---
Log message:

Rename BoolTy as Int1Ty. Patch by Sheng Zhou.


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

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


Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.74 llvm/lib/Target/TargetData.cpp:1.75
--- llvm/lib/Target/TargetData.cpp:1.74	Sat Dec 30 23:55:36 2006
+++ llvm/lib/Target/TargetData.cpp	Thu Jan 11 12:21:29 2007
@@ -241,7 +241,7 @@
                                uint64_t &Size, unsigned char &Alignment) {
   assert(Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!");
   switch (Ty->getTypeID()) {
-  case Type::BoolTyID:   Size = 1; Alignment = TD->getBoolAlignment(); return;
+  case Type::Int1TyID:   Size = 1; Alignment = TD->getBoolAlignment(); return;
   case Type::VoidTyID:
   case Type::Int8TyID:   Size = 1; Alignment = TD->getByteAlignment(); return;
   case Type::Int16TyID:  Size = 2; Alignment = TD->getShortAlignment(); return;






More information about the llvm-commits mailing list