aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2024-07-19 22:09:05 +0400
committerGitHub <noreply@github.com>2024-07-19 22:09:05 +0400
commit0f0cfcff2ca65e295cd84d3eda6f8e93b76cb3a8 (patch)
tree0a4fec8c763053a185701237c0818ecee7e4435e /llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
parent54dab7dfcfdffe7bd8697737fbd65fda8385d77e (diff)
downloadllvm-0f0cfcff2ca65e295cd84d3eda6f8e93b76cb3a8.zip
llvm-0f0cfcff2ca65e295cd84d3eda6f8e93b76cb3a8.tar.gz
llvm-0f0cfcff2ca65e295cd84d3eda6f8e93b76cb3a8.tar.bz2
CodeGen: Avoid some references to MachineFunction's getMMI (#99652)
MachineFunction's probably should not include a backreference to the owning MachineModuleInfo. Most of these references were used just to query the MCContext, which MachineFunction already directly stores. Other contexts are using it to query the LLVMContext, which can already be accessed through the IR function reference.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
index aa3aa1b..ea795cd 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
@@ -886,7 +886,7 @@ bool WebAssemblyFastISel::selectCall(const Instruction *I) {
MIB.addImm(0);
// The table into which this call_indirect indexes.
MCSymbolWasm *Table = WebAssembly::getOrCreateFunctionTableSymbol(
- MF->getMMI().getContext(), Subtarget);
+ MF->getContext(), Subtarget);
if (Subtarget->hasReferenceTypes()) {
MIB.addSym(Table);
} else {