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 | 42a75517250017a52afb03a0ade03cbd49559fe5 (patch) | |
| tree | ce6335dd133d9e2af752f558d4edd8f9d1fedefe /lib/Transforms/IPO/SimplifyLibCalls.cpp | |
| parent | b25c4ca9d8c838c2f18009221b11cd5170c47702 (diff) | |
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! :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/SimplifyLibCalls.cpp')
| -rw-r--r-- | lib/Transforms/IPO/SimplifyLibCalls.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp index ea57ab0a21..db0c492f72 100644 --- a/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp @@ -398,7 +398,7 @@ struct ExitInMainOptimization : public LibCallOptimization { // Make sure the called function looks like exit (int argument, int return // type, external linkage, not varargs). virtual bool ValidateCalledFunction(const Function *F, SimplifyLibCalls &SLC){ - return F->arg_size() >= 1 && F->arg_begin()->getType()->isIntegral(); + return F->arg_size() >= 1 && F->arg_begin()->getType()->isInteger(); } virtual bool OptimizeCall(CallInst* ci, SimplifyLibCalls& SLC) { @@ -960,8 +960,8 @@ struct memcmpOptimization : public LibCallOptimization { Function::const_arg_iterator AI = F->arg_begin(); if (F->arg_size() != 3 || !isa<PointerType>(AI->getType())) return false; if (!isa<PointerType>((++AI)->getType())) return false; - if (!(++AI)->getType()->isIntegral()) return false; - if (!F->getReturnType()->isIntegral()) return false; + if (!(++AI)->getType()->isInteger()) return false; + if (!F->getReturnType()->isInteger()) return false; return true; } @@ -1725,8 +1725,8 @@ public: : LibCallOptimization("isascii", "Number of 'isascii' calls simplified") {} virtual bool ValidateCalledFunction(const Function *F, SimplifyLibCalls &SLC){ - return F->arg_size() == 1 && F->arg_begin()->getType()->isIntegral() && - F->getReturnType()->isIntegral(); + return F->arg_size() == 1 && F->arg_begin()->getType()->isInteger() && + F->getReturnType()->isInteger(); } /// @brief Perform the isascii optimization. |
