From b0b412e66ecbb0b374e3d034049b9d18b198473c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 3 Sep 2002 01:08:28 +0000 Subject: - Renamed Type::isIntegral() to Type::isInteger() - Added new method Type::isIntegral() that is the same as isInteger, but also accepts bool. llvm-svn: 3574 --- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 2 +- llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/ExecutionEngine') diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 12ec82a093f..868bfbe5bec 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -1094,7 +1094,7 @@ void Interpreter::callMethod(Function *M, const vector &ArgVals) { cout << "\n"; if (RetTy->isIntegral()) - ExitCode = Result.SByteVal; // Capture the exit code of the program + ExitCode = Result.IntVal; // Capture the exit code of the program } } diff --git a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp index 91addb6dd68..4ef7fdcacf5 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp @@ -294,8 +294,8 @@ bool Interpreter::callMainMethod(const string &Name, } // fallthrough case 1: - if (!MT->getParamTypes()[0]->isIntegral()) { - cout << "First argument of '" << Name << "' should be integral!\n"; + if (!MT->getParamTypes()[0]->isInteger()) { + cout << "First argument of '" << Name << "' should be an integer!\n"; return true; } else { GenericValue GV; GV.UIntVal = InputArgv.size(); -- cgit v1.2.3