Changed the fundemental architecture of Operands for Instructions. Now
authorChris Lattner <sabre@nondot.org>
Sat, 7 Jul 2001 08:36:50 +0000 (08:36 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Jul 2001 08:36:50 +0000 (08:36 +0000)
commitc8b25d40cbec063b1ca99cc1adf794399c6d05c0
tree8ad1468cb632eb9770206b1bd4bdd45d4e037898
parentf0d0e9c262b668cf362fbaa8111bb6cc15268909
Changed the fundemental architecture of Operands for Instructions.  Now
Operands are maintained as a vector<Use> in the User class, and operator
iterators are provided as before.  Getting an operand no longer requires
a virtual function call.

WARNING: getOperand(x) where x >= getNumOperands() will now assert instead
of returning null!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
include/llvm/BasicBlock.h
include/llvm/ConstPoolVals.h
include/llvm/Function.h
include/llvm/InstrTypes.h
include/llvm/Instruction.h
include/llvm/User.h
include/llvm/iMemory.h
include/llvm/iOther.h
include/llvm/iTerminators.h
lib/Bytecode/Reader/InstructionReader.cpp
lib/Bytecode/Reader/ReaderInternals.h
lib/Bytecode/Writer/ConstantWriter.cpp
lib/Bytecode/Writer/InstructionWriter.cpp
lib/Transforms/IPO/InlineSimple.cpp
lib/Transforms/Scalar/ConstantProp.cpp
lib/Transforms/Scalar/DCE.cpp
lib/Transforms/Scalar/SCCP.cpp
lib/VMCore/AsmWriter.cpp
lib/VMCore/ConstantPool.cpp
lib/VMCore/InstrTypes.cpp
lib/VMCore/Value.cpp
lib/VMCore/iBranch.cpp
lib/VMCore/iCall.cpp
lib/VMCore/iReturn.cpp
lib/VMCore/iSwitch.cpp