getSlot can never fail. Make it assert internally, eliminate checks in
authorChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 05:13:03 +0000 (05:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 05:13:03 +0000 (05:13 +0000)
commita2bdad49c9c003c6fe7d4416090817a8466f2bb2
tree2066a070a05d277ce125580b90129c1bd4674eeb
parent8183cf62f6f9631a4a32efc7e27880c475777089
getSlot can never fail.  Make it assert internally, eliminate checks in
clients.  Same for getTypeSlot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34128 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bytecode/Writer/SlotCalculator.cpp
lib/Bytecode/Writer/SlotCalculator.h
lib/Bytecode/Writer/Writer.cpp