Should pass by reference.

llvm-svn: 28357
This commit is contained in:
Evan Cheng 2006-05-17 19:07:40 +00:00
parent 00bce3f2f4
commit 8c6b234ce8
2 changed files with 4 additions and 4 deletions

View File

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

View File

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