mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
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:
parent
a284584352
commit
39b5a21259
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user