diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2024-07-19 22:09:05 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 22:09:05 +0400 |
commit | 0f0cfcff2ca65e295cd84d3eda6f8e93b76cb3a8 (patch) | |
tree | 0a4fec8c763053a185701237c0818ecee7e4435e /llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp | |
parent | 54dab7dfcfdffe7bd8697737fbd65fda8385d77e (diff) | |
download | llvm-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.cpp | 2 |
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 { |