mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Use the existing begin and end symbol for debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -364,10 +364,7 @@ void WinCodeViewLineTables::endFunction(const MachineFunction *MF) {
|
||||
FnDebugInfo.erase(GV);
|
||||
VisitedFunctions.pop_back();
|
||||
} else {
|
||||
// Define end label for subprogram.
|
||||
MCSymbol *FunctionEndSym = Asm->OutStreamer.getContext().CreateTempSymbol();
|
||||
Asm->OutStreamer.EmitLabel(FunctionEndSym);
|
||||
CurFn->End = FunctionEndSym;
|
||||
CurFn->End = Asm->getFunctionEnd();
|
||||
}
|
||||
CurFn = nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user