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/CodeGen/TargetLoweringObjectFileImpl.cpp | |
| parent | 54dab7dfcfdffe7bd8697737fbd65fda8385d77e (diff) | |
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/CodeGen/TargetLoweringObjectFileImpl.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 976691b7de44..0d3e4ba5662e 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -2323,7 +2323,7 @@ bool TargetLoweringObjectFileXCOFF::ShouldSetSSPCanaryBitInTB( MCSymbol * TargetLoweringObjectFileXCOFF::getEHInfoTableSymbol(const MachineFunction *MF) { - MCSymbol *EHInfoSym = MF->getMMI().getContext().getOrCreateSymbol( + MCSymbol *EHInfoSym = MF->getContext().getOrCreateSymbol( "__ehinfo." + Twine(MF->getFunctionNumber())); cast<MCSymbolXCOFF>(EHInfoSym)->setEHInfo(); return EHInfoSym; |
