mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
use a const ref for passing the vector to ArgumentLayout
llvm-svn: 30756
This commit is contained in:
parent
f0e4950ef4
commit
2e4743b6d1
@ -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