diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-03 01:08:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-03 01:08:28 +0000 |
commit | b0b412e66ecbb0b374e3d034049b9d18b198473c (patch) | |
tree | 507b70221ac79e11ffb2be35db9e7b0113b3762e /llvm/lib/ExecutionEngine/Interpreter | |
parent | bc6bdc2992c404b5dc268718368d9298f67b2948 (diff) | |
download | bcm5719-llvm-b0b412e66ecbb0b374e3d034049b9d18b198473c.tar.gz bcm5719-llvm-b0b412e66ecbb0b374e3d034049b9d18b198473c.zip |
- Renamed Type::isIntegral() to Type::isInteger()
- Added new method Type::isIntegral() that is the same as isInteger, but
also accepts bool.
llvm-svn: 3574
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
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<GenericValue> &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(); |