[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp
Reid Spencer
reid at x10sys.com
Fri Jan 12 17:09:48 PST 2007
Changes in directory llvm/lib/VMCore:
Type.cpp updated: 1.159 -> 1.160
---
Log message:
Fix a FIXME. 1 bit integer types are now printed as i1 not bool.
---
Diffs of the changes: (+1 -4)
Type.cpp | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)
Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.159 llvm/lib/VMCore/Type.cpp:1.160
--- llvm/lib/VMCore/Type.cpp:1.159 Fri Jan 12 18:12:29 2007
+++ llvm/lib/VMCore/Type.cpp Fri Jan 12 19:09:33 2007
@@ -218,10 +218,7 @@
switch (Ty->getTypeID()) {
case Type::IntegerTyID: {
const IntegerType *ITy = cast<IntegerType>(Ty);
- if (ITy->getBitWidth() == 1)
- Result = "bool"; // FIXME: eventually this becomes i1
- else
- Result = "i" + utostr(ITy->getBitWidth());
+ Result = "i" + utostr(ITy->getBitWidth());
break;
}
case Type::FunctionTyID: {
More information about the llvm-commits
mailing list