[llvm-commits] CVS: llvm-gcc/gcc/llvm-types.c
Chris Lattner
lattner at persephone.cs.uiuc.edu
Sun Nov 28 13:17:51 PST 2004
Changes in directory llvm-gcc/gcc:
llvm-types.c updated: 1.16 -> 1.17
---
Log message:
On PowerPC, C++ bool has size and alignment of 4 bytes. In LLVM, this is
spelled 'int', not 'bool'.
---
Diffs of the changes: (+5 -1)
Index: llvm-gcc/gcc/llvm-types.c
diff -u llvm-gcc/gcc/llvm-types.c:1.16 llvm-gcc/gcc/llvm-types.c:1.17
--- llvm-gcc/gcc/llvm-types.c:1.16 Thu Nov 25 00:25:45 2004
+++ llvm-gcc/gcc/llvm-types.c Sun Nov 28 15:17:34 2004
@@ -1368,7 +1368,11 @@
return (HTE->Dest = llvm_type_get_cannonical_struct(Result));
}
case VOID_TYPE: return VoidTy;
- case BOOLEAN_TYPE: return BoolTy;
+ case BOOLEAN_TYPE:
+ if (TREE_INT_CST_LOW(TYPE_SIZE(type)) == 32)
+ return IntTy;
+ else
+ return BoolTy;
case ENUMERAL_TYPE:
if (TYPE_SIZE(type) == 0) {
More information about the llvm-commits
mailing list