diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-09 20:22:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-09 20:22:47 +0000 |
commit | 927b185c175a8eb6d64ea97e1735fc6102114766 (patch) | |
tree | 61b9ae5b740d44fe2ec5292181b989e444d83155 /lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | 3483f54367e990c61eda61a6a550ba2634a13cb9 (diff) |
Major refactoring of the bytecode reader. This includes the following
changes:
* BytecodeReader::getType(...) used to return a null pointer
on error. This was only checked about half the time. Now we convert
it to throw an exception, and delete the half that checked for error.
This was checked in before, but psmith crashed and lost the change :(
* insertValue no longer returns -1 on error, so callers don't need to
check for it.
* Substantial rewrite of InstructionReader.cpp, to use more efficient,
simpler, data structures. This provides another 5% speedup. This also
makes the code much easier to read and understand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
0 files changed, 0 insertions, 0 deletions