1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

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:
Andrew Lenharth 2008-04-03 17:37:43 +00:00
parent 2184f6cc1d
commit e60f2413d4

View File

@ -2720,9 +2720,12 @@ public:
// Emit label for the implicitly defined dbg.stoppoint at the start of
// the function.
const SourceLineInfo &LineInfo = MMI->getSourceLines()[0];
const std::vector<SourceLineInfo> &LineInfos = MMI->getSourceLines();
if (!LineInfos.empty()) {
const SourceLineInfo &LineInfo = LineInfos[0];
Asm->printLabel(LineInfo.getLabelID());
}
}
/// EndFunction - Gather and emit post-function debug information.
///