diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2024-07-26 13:10:08 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 13:10:08 +0400 |
commit | 63e1647827f3427c5f3ad37461d84a63ba5fcdaf (patch) | |
tree | a0c9d1914ab82081e3245aebbbee1fff0dbfdcaa /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | |
parent | 4ce3993ee2b6ee883ef62100df68db9e10ef1dc9 (diff) | |
download | llvm-63e1647827f3427c5f3ad37461d84a63ba5fcdaf.zip llvm-63e1647827f3427c5f3ad37461d84a63ba5fcdaf.tar.gz llvm-63e1647827f3427c5f3ad37461d84a63ba5fcdaf.tar.bz2 |
CodeGen: Remove MachineModuleInfo reference from MachineFunction (#100357)
This avoids another unserializable field. Move the DbgInfoAvailable
field into the AsmPrinter, which is only really a cache/convenience
bit for checking a direct IR module metadata check.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp index ed99eb3..de2263c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp @@ -351,7 +351,7 @@ void DebugHandlerBase::beginFunction(const MachineFunction *MF) { } void DebugHandlerBase::beginInstruction(const MachineInstr *MI) { - if (!Asm || !MMI->hasDebugInfo()) + if (!Asm || !Asm->hasDebugInfo()) return; assert(CurMI == nullptr); @@ -377,7 +377,7 @@ void DebugHandlerBase::beginInstruction(const MachineInstr *MI) { } void DebugHandlerBase::endInstruction() { - if (!Asm || !MMI->hasDebugInfo()) + if (!Asm || !Asm->hasDebugInfo()) return; assert(CurMI != nullptr); |