mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Keep track of MCSymbol used to mark beginning of a function.
llvm-svn: 102104
This commit is contained in:
parent
caf6c99d1c
commit
bae79885a8
@ -330,6 +330,7 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
||||
DwarfFrameSectionSym = DwarfInfoSectionSym = DwarfAbbrevSectionSym = 0;
|
||||
DwarfStrSectionSym = TextSectionSym = 0;
|
||||
DwarfDebugRangeSectionSym = 0;
|
||||
FunctionBeginSym = 0;
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T(DbgTimerName, DWARFGroupName);
|
||||
beginModule(M);
|
||||
@ -2444,9 +2445,10 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
|
||||
|
||||
collectVariableInfo();
|
||||
|
||||
FunctionBeginSym = Asm->GetTempSymbol("func_begin",
|
||||
Asm->getFunctionNumber());
|
||||
// Assumes in correct section after the entry point.
|
||||
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("func_begin",
|
||||
Asm->getFunctionNumber()));
|
||||
Asm->OutStreamer.EmitLabel(FunctionBeginSym);
|
||||
|
||||
// Emit label for the implicitly defined dbg.stoppoint at the start of the
|
||||
// function.
|
||||
|
@ -219,6 +219,7 @@ class DwarfDebug {
|
||||
MCSymbol *DwarfFrameSectionSym, *DwarfInfoSectionSym, *DwarfAbbrevSectionSym;
|
||||
MCSymbol *DwarfStrSectionSym, *TextSectionSym, *DwarfDebugRangeSectionSym;
|
||||
|
||||
MCSymbol *FunctionBeginSym;
|
||||
private:
|
||||
|
||||
/// getSourceDirectoryAndFileIds - Return the directory and file ids that
|
||||
|
Loading…
Reference in New Issue
Block a user