use a const ref for passing the vector to ArgumentLayout

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2006-10-05 17:46:48 +00:00
parent a284584352
commit 39b5a21259

View File

@ -134,12 +134,12 @@ class ArgumentLayout {
std::vector<unsigned> pos;
std::vector<MVT::ValueType> types;
public:
ArgumentLayout(std::vector<MVT::ValueType> Types) {
ArgumentLayout(const std::vector<MVT::ValueType> &Types) {
types = Types;
unsigned RegNum = 0;
unsigned StackOffset = 0;
for(std::vector<MVT::ValueType>::iterator I = Types.begin();
for(std::vector<MVT::ValueType>::const_iterator I = Types.begin();
I != Types.end();
++I) {
MVT::ValueType VT = *I;