mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +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:
@@ -825,7 +825,8 @@ void JITEmitter::processDebugLoc(DebugLoc DL, bool BeforePrintingInsn) {
|
|||||||
if (!BeforePrintingInsn) return;
|
if (!BeforePrintingInsn) return;
|
||||||
|
|
||||||
// FIXME: This is horribly inefficient.
|
// 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()){
|
if (CurDLT.getScope().getNode() != 0 && PrevDLT.getNode() !=CurDLT.getNode()){
|
||||||
JITEvent_EmittedFunctionDetails::LineStart NextLine;
|
JITEvent_EmittedFunctionDetails::LineStart NextLine;
|
||||||
|
Reference in New Issue
Block a user