Changes in directory llvm/tools/llvm2cpp:
CppWriter.cpp updated: 1.29 -> 1.30 --- Log message: Rename BoolTy as Int1Ty. Patch by Sheng Zhou. --- Diffs of the changes: (+3 -3) CppWriter.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.29 llvm/tools/llvm2cpp/CppWriter.cpp:1.30 --- llvm/tools/llvm2cpp/CppWriter.cpp:1.29 Thu Jan 11 06:24:14 2007 +++ llvm/tools/llvm2cpp/CppWriter.cpp Thu Jan 11 12:21:29 2007 @@ -166,7 +166,7 @@ const char* prefix; switch (Ty->getTypeID()) { case Type::VoidTyID: prefix = "void_"; break; - case Type::BoolTyID: prefix = "bool_"; break; + case Type::Int1TyID: prefix = "bool_"; break; case Type::Int8TyID: prefix = "int8_"; break; case Type::Int16TyID: prefix = "int16_"; break; case Type::Int32TyID: prefix = "int32_"; break; @@ -316,7 +316,7 @@ if (Ty->isPrimitiveType()) { switch (Ty->getTypeID()) { case Type::VoidTyID: return "Type::VoidTy"; - case Type::BoolTyID: return "Type::BoolTy"; + case Type::Int1TyID: return "Type::Int1Ty"; case Type::Int8TyID: return "Type::Int8Ty"; case Type::Int16TyID: return "Type::Int16Ty"; case Type::Int32TyID: return "Type::Int32Ty"; @@ -669,7 +669,7 @@ return; } if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { - if (CI->getType() == Type::BoolTy) + if (CI->getType() == Type::Int1Ty) Out << "ConstantInt* " << constName << " = ConstantInt::get(" << (CI->getBoolValue() ? "true" : "false") << ");"; else _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits