diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-15 02:27:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-15 02:27:26 +0000 |
commit | 03c4953cdd0dc8f0d8379488c46fd65e96dd5b86 (patch) | |
tree | 39bdfdfe809d0c5e7b06cd2d7e19d1036f1c3d54 /llvm/tools/llvm2cpp | |
parent | c1be5ac420bb53ee5c6a220256d09c92877e5d9e (diff) | |
download | bcm5719-llvm-03c4953cdd0dc8f0d8379488c46fd65e96dd5b86.tar.gz bcm5719-llvm-03c4953cdd0dc8f0d8379488c46fd65e96dd5b86.zip |
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! :)
llvm-svn: 33225
Diffstat (limited to 'llvm/tools/llvm2cpp')
-rw-r--r-- | llvm/tools/llvm2cpp/CppWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm2cpp/CppWriter.cpp b/llvm/tools/llvm2cpp/CppWriter.cpp index 845fad47b02..d507d9a516a 100644 --- a/llvm/tools/llvm2cpp/CppWriter.cpp +++ b/llvm/tools/llvm2cpp/CppWriter.cpp @@ -310,7 +310,7 @@ std::string 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 @@ CppWriter::printCppName(const Value* val) { 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 @@ CppWriter::printTypes(const Module* M) { // 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); |