diff options
author | Craig Topper <craig.topper@gmail.com> | 2020-04-27 20:15:59 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2020-04-27 22:17:03 -0700 |
commit | a58b62b4a2b96c31b49338b262b609db746449e8 (patch) | |
tree | b8549e279ee3b6dd34c461038f3e9f0e19fc7f33 /llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp | |
parent | 756ba3548cbeef6c18866914fa935ade8b3edf1c (diff) | |
download | llvm-a58b62b4a2b96c31b49338b262b609db746449e8.zip llvm-a58b62b4a2b96c31b49338b262b609db746449e8.tar.gz llvm-a58b62b4a2b96c31b49338b262b609db746449e8.tar.bz2 |
[IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand().
This method has been commented as deprecated for a while. Remove
it and replace all uses with the equivalent getCalledOperand().
I also made a few cleanups in here. For example, to removes use
of getElementType on a pointer when we could just use getFunctionType
from the call.
Differential Revision: https://reviews.llvm.org/D78882
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp index f7e9880..063f20b 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp @@ -761,7 +761,7 @@ bool WebAssemblyFastISel::selectCall(const Instruction *I) { return false; bool IsDirect = Func != nullptr; - if (!IsDirect && isa<ConstantExpr>(Call->getCalledValue())) + if (!IsDirect && isa<ConstantExpr>(Call->getCalledOperand())) return false; FunctionType *FuncTy = Call->getFunctionType(); @@ -847,7 +847,7 @@ bool WebAssemblyFastISel::selectCall(const Instruction *I) { unsigned CalleeReg = 0; if (!IsDirect) { - CalleeReg = getRegForValue(Call->getCalledValue()); + CalleeReg = getRegForValue(Call->getCalledOperand()); if (!CalleeReg) return false; } |