[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp MachOWriter.cpp MachineDebugInfo.cpp
Reid Spencer
reid at x10sys.com
Thu Jan 11 10:22:16 PST 2007
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.130 -> 1.131
MachOWriter.cpp updated: 1.10 -> 1.11
MachineDebugInfo.cpp updated: 1.67 -> 1.68
---
Log message:
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
---
Diffs of the changes: (+5 -5)
AsmPrinter.cpp | 4 ++--
MachOWriter.cpp | 2 +-
MachineDebugInfo.cpp | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.130 llvm/lib/CodeGen/AsmPrinter.cpp:1.131
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.130 Thu Jan 11 06:24:14 2007
+++ llvm/lib/CodeGen/AsmPrinter.cpp Thu Jan 11 12:21:29 2007
@@ -389,7 +389,7 @@
if (CV->isNullValue() || isa<UndefValue>(CV))
O << "0";
else if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
- if (CI->getType() == Type::BoolTy) {
+ if (CI->getType() == Type::Int1Ty) {
assert(CI->getBoolValue());
O << "1";
} else O << CI->getSExtValue();
@@ -917,7 +917,7 @@
void AsmPrinter::printDataDirective(const Type *type) {
const TargetData *TD = TM.getTargetData();
switch (type->getTypeID()) {
- case Type::BoolTyID:
+ case Type::Int1TyID:
case Type::Int8TyID:
O << TAI->getData8bitsDirective();
break;
Index: llvm/lib/CodeGen/MachOWriter.cpp
diff -u llvm/lib/CodeGen/MachOWriter.cpp:1.10 llvm/lib/CodeGen/MachOWriter.cpp:1.11
--- llvm/lib/CodeGen/MachOWriter.cpp:1.10 Sat Dec 30 23:55:36 2006
+++ llvm/lib/CodeGen/MachOWriter.cpp Thu Jan 11 12:21:29 2007
@@ -729,7 +729,7 @@
uint64_t val;
switch (PC->getType()->getTypeID()) {
- case Type::BoolTyID:
+ case Type::Int1TyID:
case Type::Int8TyID:
ptr[0] = cast<ConstantInt>(PC)->getZExtValue();
break;
Index: llvm/lib/CodeGen/MachineDebugInfo.cpp
diff -u llvm/lib/CodeGen/MachineDebugInfo.cpp:1.67 llvm/lib/CodeGen/MachineDebugInfo.cpp:1.68
--- llvm/lib/CodeGen/MachineDebugInfo.cpp:1.67 Thu Jan 11 06:24:14 2007
+++ llvm/lib/CodeGen/MachineDebugInfo.cpp Thu Jan 11 12:21:29 2007
@@ -363,7 +363,7 @@
Fields.push_back(Type::Int64Ty);
}
virtual void Apply(bool &Field) {
- Fields.push_back(Type::BoolTy);
+ Fields.push_back(Type::Int1Ty);
}
virtual void Apply(std::string &Field) {
Fields.push_back(SR.getStrPtrType());
@@ -426,7 +426,7 @@
}
virtual void Apply(bool &Field) {
Constant *C = CI->getOperand(I++);
- IsValid = IsValid && isa<ConstantInt>(C) && C->getType() == Type::BoolTy;
+ IsValid = IsValid && isa<ConstantInt>(C) && C->getType() == Type::Int1Ty;
}
virtual void Apply(std::string &Field) {
Constant *C = CI->getOperand(I++);
More information about the llvm-commits
mailing list