Should pass by reference.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-05-17 19:07:40 +00:00
parent 4dfa85d1df
commit 4ac8974d02
2 changed files with 4 additions and 4 deletions

View File

@ -461,7 +461,7 @@ static std::vector<SDOperand> getFormalArgObjects(SDOperand Op) {
return Objs;
}
void X86TargetLowering::PreprocessCCCArguments(std::vector<SDOperand>Args,
void X86TargetLowering::PreprocessCCCArguments(std::vector<SDOperand> &Args,
Function &F, SelectionDAG &DAG) {
unsigned NumArgs = Args.size();
MachineFunction &MF = DAG.getMachineFunction();
@ -895,7 +895,7 @@ HowToPassFastCCArgument(MVT::ValueType ObjectVT,
}
void
X86TargetLowering::PreprocessFastCCArguments(std::vector<SDOperand>Args,
X86TargetLowering::PreprocessFastCCArguments(std::vector<SDOperand> &Args,
Function &F, SelectionDAG &DAG) {
unsigned NumArgs = Args.size();
MachineFunction &MF = DAG.getMachineFunction();

View File

@ -369,7 +369,7 @@ namespace llvm {
std::vector<std::pair<FALocInfo, FALocInfo> > FormalArgLocs;
// C Calling Convention implementation.
void PreprocessCCCArguments(std::vector<SDOperand>Args, Function &F,
void PreprocessCCCArguments(std::vector<SDOperand> &Args, Function &F,
SelectionDAG &DAG);
void LowerCCCArguments(SDOperand Op, SelectionDAG &DAG);
std::pair<SDOperand, SDOperand>
@ -379,7 +379,7 @@ namespace llvm {
// Fast Calling Convention implementation.
void
PreprocessFastCCArguments(std::vector<SDOperand>Args, Function &F,
PreprocessFastCCArguments(std::vector<SDOperand> &Args, Function &F,
SelectionDAG &DAG);
void
LowerFastCCArguments(SDOperand Op, SelectionDAG &DAG);