forked from OSchip/llvm-project
Add basic codegen for thunks that return values.
llvm-svn: 85842
This commit is contained in:
parent
b70ef3c8c7
commit
31e1d43729
|
@ -752,12 +752,15 @@ llvm::Constant *CodeGenFunction::GenerateCovariantThunk(llvm::Function *Fn,
|
|||
CallArgs.push_back(std::make_pair(EmitCallArg(Arg, ArgType), ArgType));
|
||||
}
|
||||
|
||||
EmitCall(CGM.getTypes().getFunctionInfo(ResultType, CallArgs),
|
||||
Callee, CallArgs, MD);
|
||||
RValue RV = EmitCall(CGM.getTypes().getFunctionInfo(ResultType, CallArgs),
|
||||
Callee, CallArgs, MD);
|
||||
if (nv_r || v_r) {
|
||||
// FIXME: Add return value adjustments.
|
||||
}
|
||||
|
||||
if (!ResultType->isVoidType())
|
||||
EmitReturnOfRValue(RV, ResultType);
|
||||
|
||||
FinishFunction();
|
||||
return Fn;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue