mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-15 07:33:18 +00:00
CurFn is only used for relocations. Use EmissionDetails.MF->getFunction() instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b23569aff0
commit
9041ae274b
@ -825,7 +825,8 @@ void JITEmitter::processDebugLoc(DebugLoc DL, bool BeforePrintingInsn) {
|
||||
if (!BeforePrintingInsn) return;
|
||||
|
||||
// FIXME: This is horribly inefficient.
|
||||
DILocation CurDLT(DL.getAsMDNode(CurFn->getContext()));
|
||||
DILocation CurDLT(DL.getAsMDNode(
|
||||
EmissionDetails.MF->getFunction()->getContext()));
|
||||
|
||||
if (CurDLT.getScope().getNode() != 0 && PrevDLT.getNode() !=CurDLT.getNode()){
|
||||
JITEvent_EmittedFunctionDetails::LineStart NextLine;
|
||||
|
Loading…
x
Reference in New Issue
Block a user