Change all of the bytecode reader primitives to throw exceptions instead of
authorChris Lattner <sabre@nondot.org>
Thu, 15 Jan 2004 06:13:09 +0000 (06:13 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Jan 2004 06:13:09 +0000 (06:13 +0000)
commit7969dc2beca333e556b533053a94777169ffaa98
tree7bc16347bb7f22e61c460de4f8c9f3499d053978
parentc8434e3d71105e2e908c7b07fc190a74c6b2ddf0
Change all of the bytecode reader primitives to throw exceptions instead of
returning error codes.  Because they don't return an error code, they can
return the value read, which simplifies the code and makes the reader more
efficient (yaay!).

Also eliminate the special case code for little endian machines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10871 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bytecode/Reader/ConstantReader.cpp
lib/Bytecode/Reader/InstructionReader.cpp
lib/Bytecode/Reader/Reader.cpp
lib/Bytecode/Reader/ReaderInternals.h
lib/Bytecode/Reader/ReaderPrimitives.h