forked from OSchip/llvm-project
if some functions don't have debug info, we were outputing the same label at the start of each of those functions. This makes assemblers unhappy
llvm-svn: 49176
This commit is contained in:
parent
73ac2048f9
commit
bfb7246fb6
|
@ -2720,8 +2720,11 @@ public:
|
||||||
|
|
||||||
// Emit label for the implicitly defined dbg.stoppoint at the start of
|
// Emit label for the implicitly defined dbg.stoppoint at the start of
|
||||||
// the function.
|
// the function.
|
||||||
const SourceLineInfo &LineInfo = MMI->getSourceLines()[0];
|
const std::vector<SourceLineInfo> &LineInfos = MMI->getSourceLines();
|
||||||
Asm->printLabel(LineInfo.getLabelID());
|
if (!LineInfos.empty()) {
|
||||||
|
const SourceLineInfo &LineInfo = LineInfos[0];
|
||||||
|
Asm->printLabel(LineInfo.getLabelID());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EndFunction - Gather and emit post-function debug information.
|
/// EndFunction - Gather and emit post-function debug information.
|
||||||
|
|
Loading…
Reference in New Issue