mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Restore minor deletion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3980,7 +3980,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
||||
MF.getOrCreateDebugLocID(CompileUnit.getGV(), Line, 0)));
|
||||
|
||||
if (DW && DW->ShouldEmitDwarfDebug()) {
|
||||
unsigned LabelID = DW->RecordSourceLine(Line, 0, CompileUnit);
|
||||
unsigned LabelID = DAG.getMachineModuleInfo()->NextLabelID();
|
||||
DAG.setRoot(DAG.getLabel(ISD::DBG_LABEL, getCurDebugLoc(),
|
||||
getRoot(), LabelID));
|
||||
DebugLocTuple PrevLocTpl = MF.getDebugLocTuple(PrevLoc);
|
||||
@@ -3992,10 +3992,9 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
||||
} else {
|
||||
// Record the source line.
|
||||
unsigned Line = Subprogram.getLineNumber();
|
||||
setCurDebugLoc(DebugLoc::get(
|
||||
MF.setDefaultDebugLoc(DebugLoc::get(
|
||||
MF.getOrCreateDebugLocID(CompileUnit.getGV(), Line, 0)));
|
||||
if (DW && DW->ShouldEmitDwarfDebug()) {
|
||||
DW->RecordSourceLine(Line, 0, CompileUnit);
|
||||
// llvm.dbg.func_start also defines beginning of function scope.
|
||||
DW->RecordRegionStart(cast<GlobalVariable>(FSI.getSubprogram()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user