Changes in directory llvm/tools/llvm2cpp:
CppWriter.cpp updated: 1.33 -> 1.34 --- Log message: rename Type::isIntegral to Type::isInteger, eliminating the old Type::isInteger. rename Type::getIntegralTypeMask to Type::getIntegerTypeMask. This makes naming much more consistent. For example, there are now no longer any instances of IntegerType that are not considered isInteger! :) --- 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.33 llvm/tools/llvm2cpp/CppWriter.cpp:1.34 --- llvm/tools/llvm2cpp/CppWriter.cpp:1.33 Fri Jan 12 12:37:29 2007 +++ llvm/tools/llvm2cpp/CppWriter.cpp Sun Jan 14 20:27:26 2007 @@ -310,7 +310,7 @@ CppWriter::getCppName(const Type* Ty) { // First, handle the primitive types .. easy - if (Ty->isPrimitiveType() || Ty->isIntegral()) { + if (Ty->isPrimitiveType() || Ty->isInteger()) { switch (Ty->getTypeID()) { case Type::VoidTyID: return "Type::VoidTy"; case Type::IntegerTyID: { @@ -410,7 +410,7 @@ bool CppWriter::printTypeInternal(const Type* Ty) { // We don't print definitions for primitive types - if (Ty->isPrimitiveType() || Ty->isIntegral()) + if (Ty->isPrimitiveType() || Ty->isInteger()) return false; // If we already defined this type, we don't need to define it again. @@ -599,7 +599,7 @@ // For primitive types and types already defined, just add a name TypeMap::const_iterator TNI = TypeNames.find(TI->second); - if (TI->second->isIntegral() || TI->second->isPrimitiveType() || + if (TI->second->isInteger() || TI->second->isPrimitiveType() || TNI != TypeNames.end()) { Out << "mod->addTypeName(\""; printEscapedString(TI->first); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits