diff options
| author | Shiva Chen <shiva0217@gmail.com> | 2019-08-22 04:59:43 +0000 | 
|---|---|---|
| committer | Shiva Chen <shiva0217@gmail.com> | 2019-08-22 04:59:43 +0000 | 
| commit | 72a41e7b0d0483afad6af64a99f3422e498f8809 (patch) | |
| tree | 04ef4f2452ee7e72ff44ab6edd5d1cde7b366f3f /llvm/lib/Target/WebAssembly | |
| parent | 83ee8d4463d1bb1d2248f5cc7f5577672d3ddf94 (diff) | |
| download | bcm5719-llvm-72a41e7b0d0483afad6af64a99f3422e498f8809.tar.gz bcm5719-llvm-72a41e7b0d0483afad6af64a99f3422e498f8809.zip | |
[TargetLowering] Remove optional arguments passing to makeLibCall
The patch introduces MakeLibCallOptions struct as suggested by @efriedma on D65497.
The struct contain argument flags which will pass to makeLibCall function.
The patch should not has any functionality changes.
Differential Revision: https://reviews.llvm.org/D65795
llvm-svn: 369622
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp index 3cbc109020f..4ac9995db01 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp @@ -1056,8 +1056,9 @@ SDValue WebAssemblyTargetLowering::LowerRETURNADDR(SDValue Op,      return SDValue();    unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue(); +  MakeLibCallOptions CallOptions;    return makeLibCall(DAG, RTLIB::RETURN_ADDRESS, Op.getValueType(), -                     {DAG.getConstant(Depth, DL, MVT::i32)}, false, DL) +                     {DAG.getConstant(Depth, DL, MVT::i32)}, CallOptions, DL)        .first;  } | 

